mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
dhcpd contol for iiab-hotspot-on|off
This commit is contained in:
parent
29104b9f75
commit
bd5684cd10
3 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
- name: Create a config template for hostapd
|
||||
template: src=hostapd/iiab-hostapd.conf.j2
|
||||
dest=/etc/hostapd/hostapd.conf.template
|
||||
dest=/etc/hostapd/hostapd.conf.iiab
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
sed -i -e "s/^denyinterfaces*/#denyinterfaces/" /etc/dhcpcd.conf
|
||||
systemctl disable hostapd
|
||||
systemctl stop hostapd
|
||||
systemctl disable dhcpd
|
||||
systemctl stop dhcpd
|
||||
systemctl daemon-reload
|
||||
systemctl restart dhcpcd
|
||||
systemctl restart networking
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
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 daemon-reload
|
||||
systemctl restart dhcpcd
|
||||
systemctl restart networking
|
||||
systemctl start hostapd
|
||||
systemctl start dhcpd
|
||||
|
|
Loading…
Reference in a new issue