mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
19 lines
699 B
Bash
Executable file
19 lines
699 B
Bash
Executable file
#!/bin/bash
|
|
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
|
systemctl disable hostapd
|
|
systemctl stop hostapd
|
|
#systemctl disable dnsmasq
|
|
#systemctl stop dnsmasq
|
|
systemctl daemon-reload
|
|
systemctl restart dhcpcd
|
|
#systemctl restart networking 6/15/2019 TFM removed
|
|
|
|
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
|
|
# Set wlan0 to promiscuous when AP's OFF (for possible WiFi gateway)
|
|
# SEE ALSO iiab-hotspot-on + /usr/libexec/iiab-startup.sh
|
|
# https://github.com/iiab/iiab/issues/638#issuecomment-355455454
|
|
if grep -qi raspbian /etc/*release; then
|
|
ip link set dev wlan0 promisc on
|
|
fi
|
|
|
|
sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=False/" {{ iiab_env_file }}
|