mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
fix iiab-startup.sh when hostapd_enabled = False (bash syntax/comment error)
This commit is contained in:
parent
1b86d291b0
commit
7ce1278d7b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue