Check return status when enabling hotspot
This commit is contained in:
parent
9f1fcdf1fa
commit
47bb733b54
|
@ -203,6 +203,9 @@ fi
|
||||||
|
|
||||||
if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
|
if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
|
||||||
hotspot_on
|
hotspot_on
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit "$?"
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
hotspot_off
|
hotspot_off
|
||||||
|
|
Loading…
Reference in New Issue