mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
Create and manage information on MAC address OUIs
(Organizationally Unique Identifiers). This is the manufacturer's code in the MAC address.
This commit is contained in:
25
contrib/mac/dropoui
Executable file
25
contrib/mac/dropoui
Executable file
@@ -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
|
Reference in New Issue
Block a user