aboutsummaryrefslogtreecommitdiff
path: root/contrib/mac/dropoui
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mac/dropoui')
-rwxr-xr-xcontrib/mac/dropoui25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/mac/dropoui b/contrib/mac/dropoui
new file mode 100755
index 00000000000..6fffdc92d66
--- /dev/null
+++ b/contrib/mac/dropoui
@@ -0,0 +1,25 @@
+#! /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