1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #1349 from holta/hotspot-on-off-commands

Update iiab-hotspot-on & -off commands from dhcpd to dnsmasq
This commit is contained in:
A Holt 2019-01-02 01:08:33 -05:00 committed by GitHub
commit fbe268569d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -2,8 +2,8 @@
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
systemctl disable hostapd
systemctl stop hostapd
systemctl disable dhcpd
systemctl stop dhcpd
systemctl disable dnsmasq
systemctl stop dnsmasq
systemctl daemon-reload
systemctl restart dhcpcd
systemctl restart networking

View file

@ -2,12 +2,12 @@
cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf
systemctl enable hostapd
systemctl enable dhcpd
systemctl enable dnsmasq
systemctl daemon-reload
systemctl restart dhcpcd
systemctl restart networking
systemctl start hostapd
systemctl start dhcpd
systemctl start dnsmasq
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
# Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway)