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
|
||||
hotspot_on
|
||||
if [ ! "$?" = "0" ]; then
|
||||
exit "$?"
|
||||
fi
|
||||
exit 0
|
||||
else
|
||||
hotspot_off
|
||||
|
|
Loading…
Reference in New Issue