[package] add mac-to-devinfo (#5373)
[packages.git] / net / mac-to-devinfo / files / prep-devinfo
1 #!/bin/sh
2
3 OUIURL=http://standards.ieee.org/regauth/oui/oui.txt
4 IABURL=http://standards.ieee.org/regauth/oui/iab.txt
5
6 OUIDIR=/var/cache/mac-to-devinfo
7
8 OUIFILE=$OUIDIR/oui.txt
9 IABFILE=$OUIDIR/iab.txt
10
11 [ -d $OUIDIR ] || mkdir -p $OUIDIR
12
13 wget -q -O $OUIFILE $OUIURL
14 wget -q -O $IABFILE $IABURL
15