Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 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. |
||
18 | daniel-mar | 13 | wget https://standards-oui.ieee.org/iab/iab.txt -O "$DIR"/web-data/iab.txt |
2 | daniel-mar | 14 | if [ $? -ne 0 ]; then |
15 | sleep 300 |
||
18 | daniel-mar | 16 | wget https://standards-oui.ieee.org/iab/iab.txt -O "$DIR"/web-data/iab.txt |
2 | daniel-mar | 17 | fi |
18 | |||
18 | daniel-mar | 19 | wget https://standards-oui.ieee.org/oui/oui.txt -O "$DIR"/web-data/oui.txt |
2 | daniel-mar | 20 | if [ $? -ne 0 ]; then |
21 | sleep 300 |
||
18 | daniel-mar | 22 | wget https://standards-oui.ieee.org/oui/oui.txt -O "$DIR"/web-data/oui.txt |
2 | daniel-mar | 23 | fi |
24 | |||
18 | daniel-mar | 25 | wget https://standards-oui.ieee.org/oui28/mam.txt -O "$DIR"/web-data/mam.txt |
2 | daniel-mar | 26 | if [ $? -ne 0 ]; then |
27 | sleep 300 |
||
18 | daniel-mar | 28 | wget https://standards-oui.ieee.org/oui28/mam.txt -O "$DIR"/web-data/mam.txt |
2 | daniel-mar | 29 | fi |
30 | |||
18 | daniel-mar | 31 | wget https://standards-oui.ieee.org/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt |
2 | daniel-mar | 32 | if [ $? -ne 0 ]; then |
33 | sleep 300 |
||
18 | daniel-mar | 34 | wget https://standards-oui.ieee.org/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt |
2 | daniel-mar | 35 | fi |
18 | daniel-mar | 36 | |
37 | wget https://standards-oui.ieee.org/cid/cid.txt -O "$DIR"/web-data/cid.txt |
||
38 | if [ $? -ne 0 ]; then |
||
39 | sleep 300 |
||
40 | wget https://standards-oui.ieee.org/cid/cid.txt -O "$DIR"/web-data/cid.txt |
||
41 | fi |