From 47bb733b54dac96090088f90dcee9d14b1b5a4c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 Jun 2017 18:51:03 +0100 Subject: [PATCH] Check return status when enabling hotspot --- src/freedombone-wifi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-wifi b/src/freedombone-wifi index a2ed2f30..f6d9170a 100755 --- a/src/freedombone-wifi +++ b/src/freedombone-wifi @@ -203,6 +203,9 @@ fi if [[ ${WIFI_HOTSPOT} != 'no' ]]; then hotspot_on + if [ ! "$?" = "0" ]; then + exit "$?" + fi exit 0 else hotspot_off