mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
26 lines
314 B
Plaintext
26 lines
314 B
Plaintext
|
#! /bin/sh
|
||
|
# Utility to remove manufacturer's oui table
|
||
|
|
||
|
args=
|
||
|
|
||
|
while [ $# -gt 0 ]
|
||
|
do
|
||
|
case "$1" in
|
||
|
--help)
|
||
|
echo "Usage: $0 dbname"
|
||
|
exit
|
||
|
;;
|
||
|
*)
|
||
|
args="$args $1"
|
||
|
;;
|
||
|
esac
|
||
|
shift
|
||
|
done
|
||
|
|
||
|
psql $args <<EOF
|
||
|
drop function manuf(macaddr);
|
||
|
drop table macoui;
|
||
|
EOF
|
||
|
|
||
|
exit
|