소스 검색

Check return status when enabling hotspot

Bob Mottram 8 년 전
부모
커밋
47bb733b54
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      src/freedombone-wifi

+ 3
- 0
src/freedombone-wifi 파일 보기

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