Browse Source

Check return status when enabling hotspot

Bob Mottram 8 years ago
parent
commit
47bb733b54
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-wifi

+ 3
- 0
src/freedombone-wifi View File

203
 
203
 
204
 if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
204
 if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
205
     hotspot_on
205
     hotspot_on
206
+    if [ ! "$?" = "0" ]; then
207
+        exit "$?"
208
+    fi
206
     exit 0
209
     exit 0
207
 else
210
 else
208
     hotspot_off
211
     hotspot_off