mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-hotspot-on|off
This commit is contained in:
parent
65214d84f2
commit
30ee7a2449
3 changed files with 20 additions and 0 deletions
|
@ -26,6 +26,20 @@
|
||||||
group=root
|
group=root
|
||||||
mode=0644
|
mode=0644
|
||||||
|
|
||||||
|
- name: Use custom iiab-hotspot-on
|
||||||
|
template: src=network/iiab-hotspot-on
|
||||||
|
dest=/usr/bin/iiab-hotspot-on
|
||||||
|
owner=root
|
||||||
|
group=root
|
||||||
|
mode=0755
|
||||||
|
|
||||||
|
- name: Use custom iiab-hotspot-off
|
||||||
|
template: src=network/iiab-hotspot-off
|
||||||
|
dest=/usr/bin/iiab-hotspot-off
|
||||||
|
owner=root
|
||||||
|
group=root
|
||||||
|
mode=0755
|
||||||
|
|
||||||
- name: Enable the Access Point 'hostapd' service
|
- name: Enable the Access Point 'hostapd' service
|
||||||
service: enabled=yes
|
service: enabled=yes
|
||||||
name=hostapd.service
|
name=hostapd.service
|
||||||
|
|
3
roles/network/templates/network/iiab-hotspot-off
Executable file
3
roles/network/templates/network/iiab-hotspot-off
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
sed -i -e "s/^denyinterfaces*/#denyinterfaces/" /etc/dhcpcd.conf
|
||||||
|
systemctl disable hostapd
|
3
roles/network/templates/network/iiab-hotspot-on
Executable file
3
roles/network/templates/network/iiab-hotspot-on
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
sed -i -e "s/#denyinterfaces*/denyinterfaces/" /etc/dhcpcd.conf
|
||||||
|
systemctl enable hostapd
|
Loading…
Add table
Add a link
Reference in a new issue