diff --git a/misc/sampleconfigs/autohotspot.sh.stretch-default2-Hotspot.sample b/misc/sampleconfigs/autohotspot.sh.stretch-default2-Hotspot.sample index 01cf0cbf5..cdb56bad6 100644 --- a/misc/sampleconfigs/autohotspot.sh.stretch-default2-Hotspot.sample +++ b/misc/sampleconfigs/autohotspot.sh.stretch-default2-Hotspot.sample @@ -122,7 +122,8 @@ CheckDevice() echo "wifi device available" if (rfkill list wifi -rno HARD,SOFT | grep -i "unblocked.*unblocked") >/dev/null 2>&1 ; then local wifidev_up=$(ip link show "$wifidev" up) - if [ -z $"wifidev_up" ]; then + if [ -z "$wifidev_up" ]; then + echo "wifi is down. setting up" ip link set dev "$wifidev" up sleep 2 fi