Subversion Repositories uuid_mac_utils

Rev

Rev 18 | Go to most recent revision | Details | 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.
13
wget http://standards.ieee.org/develop/regauth/iab/iab.txt -O "$DIR"/web-data/iab.txt
14
if [ $? -ne 0 ]; then
15
        sleep 300
16
        wget http://standards.ieee.org/develop/regauth/iab/iab.txt -O "$DIR"/web-data/iab.txt
17
fi
18
 
19
wget http://standards.ieee.org/develop/regauth/oui/oui.txt -O "$DIR"/web-data/oui.txt
20
if [ $? -ne 0 ]; then
21
        sleep 300
22
        wget http://standards.ieee.org/develop/regauth/oui/oui.txt -O "$DIR"/web-data/oui.txt
23
fi
24
 
25
wget http://standards.ieee.org/develop/regauth/oui28/mam.txt -O "$DIR"/web-data/mam.txt
26
if [ $? -ne 0 ]; then
27
        sleep 300
28
        wget http://standards.ieee.org/develop/regauth/oui28/mam.txt -O "$DIR"/web-data/mam.txt
29
fi
30
 
31
wget http://standards.ieee.org/develop/regauth/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt
32
if [ $? -ne 0 ]; then
33
        sleep 300
34
        wget http://standards.ieee.org/develop/regauth/oui36/oui36.txt -O "$DIR"/web-data/oui36.txt
35
fi