2
if ! which curl &>/dev/null; then
3
echo "Please install curl. I need it to download the file to test for"
6
if ! ping -c1 standards.ieee.org &>/dev/null; then
7
echo "ERROR: Can't reach standards.ieee.org. Check your internet connection"
10
if diff -qu airodump-ng-oui.txt <(curl -s http://standards.ieee.org/develop/regauth/oui/oui.txt | grep "(hex)") &>/dev/null; then
11
echo "OK: file is updated"
14
echo "ERROR: file needs to be update"