postgresql/contrib/mac/dropoui
Thomas G. Lockhart aa2a3bfd48 Create and manage information on MAC address OUIs
(Organizationally Unique Identifiers).
 This is the manufacturer's code in the MAC address.
2000-08-23 06:02:23 +00:00

26 lines
314 B
Bash
Executable File

#! /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