From 9017806ec2c4a67cdf8c30d47f1b75953495f77f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 Jun 2017 18:54:05 +0100 Subject: [PATCH] Check return status when enabling hotspot --- src/freedombone-controlpanel | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index d1128769..905cce06 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -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