diff --git a/roles/2-common/templates/iiab-startup.sh b/roles/2-common/templates/iiab-startup.sh index 8e99b0f92..595099799 100644 --- a/roles/2-common/templates/iiab-startup.sh +++ b/roles/2-common/templates/iiab-startup.sh @@ -9,13 +9,13 @@ fi # Set wlan0 to promiscuous on boot if needed as gateway (i.e. AP's OFF) # Scripts iiab-hotspot-on + iiab-hotspot-off SHOULD toggle this boot flag! # https://github.com/iiab/iiab/issues/638#issuecomment-355455454 -if [[ $(grep -i raspbian /etc/*release) && +if [[ $(grep -i raspbian /etc/*release) && \ #($(grep "hostapd_enabled = False" /etc/iiab/config_vars.yml) || #((! $(grep "hostapd_enabled = True" /etc/iiab/config_vars.yml)) && - $(grep "^hostapd_enabled = False" /etc/iiab/iiab.ini) + $(grep "^hostapd_enabled = False" /etc/iiab/iiab.ini) ]]; #) #) - ]]; + #]]; then ip link set dev wlan0 promisc on fi