Corrected annoyance with diagnostics script.

This commit is contained in:
Matias Barcenas 2017-12-05 21:12:23 -06:00
parent ee4d84e59f
commit 413027e881
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,13 @@
#!/bin/bash
source lib/InterfaceUtils.sh
if [ -d "lib" ]
then source lib/InterfaceUtils.sh
elif [ -d "../lib" ]
then source ../lib/InterfaceUtils.sh
else
echo "YOU MUST EXECUTE THIS SCRIPT FROM FLUXION'S ROOT!"; exit 1
fi
if [ ! "$1" ]
then echo "Usage ./scripts/diagnostics <wireless_interface>"; exit 1