florian 3ba2924807 [package] mac-to-devinfo updates and cleanups (#5488)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16794 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 10:55:29 +00:00

16 lines
332 B
Bash

#!/bin/sh
OUIURL=http://standards.ieee.org/regauth/oui/oui.txt
IABURL=http://standards.ieee.org/regauth/oui/iab.txt
OUIDIR=/var/cache/mac-to-devinfo
OUIFILE=$OUIDIR/oui.txt
IABFILE=$OUIDIR/iab.txt
[ -d $OUIDIR ] || mkdir -p $OUIDIR
[ -r $OUIFILE ] || wget -q -O $OUIFILE $OUIURL
[ -r $IABFILE ] || wget -q -O $IABFILE $IABURL