Subversion Repositories uuid_mac_utils

Rev

Rev 18 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #!/bin/bash
  2.  
  3. DIR=$( dirname "$0" )
  4.  
  5. if [ ! -d "$DIR"/web-data ]; then
  6.         mkdir "$DIR"/web-data
  7.  
  8.         echo "Order Deny,Allow" > "$DIR"/web-data/.htaccess
  9.         echo "Deny From All" >> "$DIR"/web-data/.htaccess
  10. fi
  11.  
  12. # Note: The Individual Address Block (IAB) is an inactive registry activity, which has been replaced by the MA-S registry product as of January 1, 2014.
  13. #wget https://standards-oui.ieee.org/iab/iab.txt -O "$DIR"/web-data/iab.txt
  14. curl https://standards-oui.ieee.org/iab/iab.txt --output "$DIR"/web-data/iab.txt
  15. if [ $? -ne 0 ]; then
  16.         sleep 300
  17.         wget https://standards-oui.ieee.org/iab/iab.txt -O "$DIR"/web-data/iab.txt
  18. fi
  19.  
  20. #wget https://standards-oui.ieee.org/oui/oui.txt -O "$DIR"/web-data/oui.txt
  21. curl https://standards-oui.ieee.org/oui/oui.txt --output "$DIR"/web-data/oui.txt
  22. if [ $? -ne 0 ]; then
  23.         sleep 300
  24.         wget https://standards-oui.ieee.org/oui/oui.txt -O "$DIR"/web-data/oui.txt
  25. fi
  26.  
  27. #wget https://standards-oui.ieee.org/oui28/mam.txt -O "$DIR"/web-data/mam.txt
  28. curl https://standards-oui.ieee.org/oui28/mam.txt --output "$DIR"/web-data/mam.txt
  29. if [ $? -ne 0 ]; then
  30.         sleep 300
  31.         wget https://standards-oui.ieee.org/oui28/mam.txt -O "$DIR"/web-data/mam.txt
  32. fi
  33.  
  34. #wget https://standards-oui.ieee.org/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt
  35. curl https://standards-oui.ieee.org/oui36/oui36.txt --output "$DIR"/web-data/oui36.txt
  36. if [ $? -ne 0 ]; then
  37.         sleep 300
  38.         wget https://standards-oui.ieee.org/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt
  39. fi
  40.  
  41. #wget https://standards-oui.ieee.org/cid/cid.txt -O "$DIR"/web-data/cid.txt
  42. curl https://standards-oui.ieee.org/cid/cid.txt --output "$DIR"/web-data/cid.txt
  43. if [ $? -ne 0 ]; then
  44.         sleep 300
  45.         wget https://standards-oui.ieee.org/cid/cid.txt -O "$DIR"/web-data/cid.txt
  46. fi
  47.