Rev 18 | 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. |
||
22 | daniel-mar | 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 |
||
2 | daniel-mar | 15 | if [ $? -ne 0 ]; then |
16 | sleep 300 |
||
18 | daniel-mar | 17 | wget https://standards-oui.ieee.org/iab/iab.txt -O "$DIR"/web-data/iab.txt |
2 | daniel-mar | 18 | fi |
19 | |||
22 | daniel-mar | 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 |
||
2 | daniel-mar | 22 | if [ $? -ne 0 ]; then |
23 | sleep 300 |
||
18 | daniel-mar | 24 | wget https://standards-oui.ieee.org/oui/oui.txt -O "$DIR"/web-data/oui.txt |
2 | daniel-mar | 25 | fi |
26 | |||
22 | daniel-mar | 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 |
||
2 | daniel-mar | 29 | if [ $? -ne 0 ]; then |
30 | sleep 300 |
||
18 | daniel-mar | 31 | wget https://standards-oui.ieee.org/oui28/mam.txt -O "$DIR"/web-data/mam.txt |
2 | daniel-mar | 32 | fi |
33 | |||
22 | daniel-mar | 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 |
||
2 | daniel-mar | 36 | if [ $? -ne 0 ]; then |
37 | sleep 300 |
||
18 | daniel-mar | 38 | wget https://standards-oui.ieee.org/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt |
2 | daniel-mar | 39 | fi |
18 | daniel-mar | 40 | |
22 | daniel-mar | 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 |
||
18 | daniel-mar | 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 |