Check return status when enabling hotspot

This commit is contained in:
Bob Mottram 2017-06-19 18:54:05 +01:00
parent 47bb733b54
commit 9017806ec2
1 changed files with 4 additions and 0 deletions

View File

@ -1668,6 +1668,10 @@ function hotspot_settings {
WIFI_PASSPHRASE=$TEMP_WIFI_PASSPHRASE
${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $WIFI_HOTSPOT $WIFI_EXTRA
if [ ! "$?" = "0" ]; then
echo $"Can't enable wifi hotspot"
any_key
fi
else
WIFI_HOTSPOT=$TEMP_WIFI_HOTSPOT
WIFI_SSID=$TEMP_WIFI_SSID