aboutsummaryrefslogtreecommitdiff
path: root/contrib/mac/dropoui
blob: 6fffdc92d66630824b5ed7d893383ed33a56411d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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