Browse Source

Check return status when enabling hotspot

Bob Mottram 7 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,6 +203,9 @@ fi
203 203
 
204 204
 if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
205 205
     hotspot_on
206
+    if [ ! "$?" = "0" ]; then
207
+        exit "$?"
208
+    fi
206 209
     exit 0
207 210
 else
208 211
     hotspot_off