1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Fix hardware tester when no devices available

This commit is contained in:
albfan 2016-02-20 11:06:45 +01:00
parent ce1cbba7d5
commit 1cbfa5b42a
2 changed files with 14 additions and 4 deletions

View file

@ -14,12 +14,16 @@ fi
. miracle-utils.sh
WIFI_NAMES=$(find_wireless_network_interfaces)
WIFI_COUNT=$(echo "$WIFI_NAMES" | wc -l)
WIFI_COUNT=0
WIFI_NAMES="$(find_wireless_network_interfaces)"
if [ -n "$WIFI_NAMES" ]
then
WIFI_COUNT=$(echo "$WIFI_NAMES" | wc -l)
fi
if [ 0 = $WIFI_COUNT ]
then
echo There is no wireless devices avaliable
echo There is no wireless devices available
exit 1
elif [ 1 = $WIFI_COUNT ]
then