Check return status when enabling hotspot

This commit is contained in:
Bob Mottram 2017-06-19 18:51:03 +01:00
parent 9f1fcdf1fa
commit 47bb733b54
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ fi
if [[ ${WIFI_HOTSPOT} != 'no' ]]; then
hotspot_on
if [ ! "$?" = "0" ]; then
exit "$?"
fi
exit 0
else
hotspot_off