1
0
Fork 0
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:
Jerry Vonau 2017-11-18 19:48:13 -05:00
parent 65214d84f2
commit 30ee7a2449
3 changed files with 20 additions and 0 deletions

View file

@ -26,6 +26,20 @@
group=root
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
service: enabled=yes
name=hostapd.service

View file

@ -0,0 +1,3 @@
#!/bin/bash
sed -i -e "s/^denyinterfaces*/#denyinterfaces/" /etc/dhcpcd.conf
systemctl disable hostapd

View file

@ -0,0 +1,3 @@
#!/bin/bash
sed -i -e "s/#denyinterfaces*/denyinterfaces/" /etc/dhcpcd.conf
systemctl enable hostapd