You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
590 B

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