1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

check value/existence of HOSTAPD_ENABLED in iiab.env

This commit is contained in:
A Holt 2018-04-04 03:27:00 -04:00 committed by GitHub
parent 1396704aff
commit 5b671e2a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,9 @@ fi
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 = True" /etc/iiab/iiab.ini) ]];
! $(grep "^HOSTAPD_ENABLED=True" /etc/iiab/iiab.env) ]];
# NEGATED LOGIC HELPS FORCE PROMISCUOUS MODE EARLY IN INSTALL
# (when computed_network.yml has not yet populated iiab.ini)
# (when network/tasks/main.yml hasn't yet populated iiab.env)
# RESULT: WiFi-installed IIAB should have wlan0 properly in
# promiscuous mode Even On Reboots (if 2-common completed!)