blob: 414ecb8a2cad581a9c2d69b67c651d2a8287f091 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/gen_oui.sh
2+++ b/gen_oui.sh
3@@ -3,7 +3,7 @@
4 VER="1.2"
5
6 # Location of tmp file
7-TMPFILE="/tmp/oui.tmp"
8+TMPFILE="./oui.tmp"
9
10 # File to write
11 OUIFILE="oui.txt"
12@@ -22,10 +22,7 @@ exit 1
13
14 get_oui ()
15 {
16-echo -n "Downloading OUI file from IEEE..."
17-wget --quiet -O $TMPFILE http://standards.ieee.org/develop/regauth/oui/oui.txt || \
18- ErrorMsg ERR "Unable to contact IEEE server!"
19-
20+[ -f "$TMPFILE" ] || ErrorMsg ERR "Unable to find $TMPFILE"
21 echo "OK"
22 }
23
24@@ -44,7 +41,6 @@ echo "OK"
25 clean_all ()
26 {
27 echo -n "Removing files..."
28-rm -f $TMPFILE
29 rm -f $OUIFILE
30 echo "OK"
31 }