mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
move iiab-hotspot-on|off - can_be_ap in template
This commit is contained in:
parent
39bf6fe32c
commit
7c72b2f983
3 changed files with 6 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
|||
|
||||
- name: Create /usr/bin/iiab-hotspot-on from template
|
||||
template:
|
||||
src: network/iiab-hotspot-on
|
||||
src: hostapd/iiab-hotspot-on
|
||||
dest: /usr/bin/iiab-hotspot-on
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
- name: Create /usr/bin/iiab-hotspot-off from template
|
||||
template:
|
||||
src: network/iiab-hotspot-off
|
||||
src: hostapd/iiab-hotspot-off
|
||||
dest: /usr/bin/iiab-hotspot-off
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
{% if not can_be_ap %}
|
||||
AP support was not detected please see https://github.com/iiab/iiab/pull/3179
|
||||
{% else %}
|
||||
sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=True/" {{ iiab_env_file }}
|
||||
{% if wifi_up_down %}
|
||||
systemctl enable iiab-clone-wifi.service
|
||||
|
@ -38,3 +41,4 @@ exit 0
|
|||
{% endif %}
|
||||
#wifi_up_down
|
||||
{% endif %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue