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:
commit
fbe268569d
2 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,8 @@
|
||||||
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
||||||
systemctl disable hostapd
|
systemctl disable hostapd
|
||||||
systemctl stop hostapd
|
systemctl stop hostapd
|
||||||
systemctl disable dhcpd
|
systemctl disable dnsmasq
|
||||||
systemctl stop dhcpd
|
systemctl stop dnsmasq
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart dhcpcd
|
systemctl restart dhcpcd
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
||||||
sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf
|
sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
systemctl enable dhcpd
|
systemctl enable dnsmasq
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart dhcpcd
|
systemctl restart dhcpcd
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
systemctl start hostapd
|
systemctl start hostapd
|
||||||
systemctl start dhcpd
|
systemctl start dnsmasq
|
||||||
|
|
||||||
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
|
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
|
||||||
# Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway)
|
# Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway)
|
||||||
|
|
Loading…
Reference in a new issue