mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
iiab-hotspot-off: sed "-e" flag optional
This commit is contained in:
parent
cdc77b121c
commit
319b75fe7d
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
echo -e "Networking role disabled\n"
|
echo -e "Networking role disabled\n"
|
||||||
echo -e "For details, see: https://github.com/iiab/iiab/pull/3302\n"
|
echo -e "For details, see: https://github.com/iiab/iiab/pull/3302\n"
|
||||||
{% else %}
|
{% else %}
|
||||||
sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=False/" {{ iiab_env_file }}
|
sed -i "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=False/" {{ iiab_env_file }}
|
||||||
systemctl disable hostapd
|
systemctl disable hostapd
|
||||||
systemctl stop hostapd
|
systemctl stop hostapd
|
||||||
{% if wifi_up_down %}
|
{% if wifi_up_down %}
|
||||||
|
@ -16,7 +16,7 @@ echo " IIAB hotspot access point Disabled"
|
||||||
echo " IIAB hotspot access point Disabled"
|
echo " IIAB hotspot access point Disabled"
|
||||||
{% if is_raspbian %}
|
{% if is_raspbian %}
|
||||||
# hotspot-off before ap0_updown
|
# hotspot-off before ap0_updown
|
||||||
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
sed -i "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
||||||
#systemctl disable dnsmasq
|
#systemctl disable dnsmasq
|
||||||
#systemctl stop dnsmasq
|
#systemctl stop dnsmasq
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
@ -32,7 +32,7 @@ systemctl restart dhcpcd
|
||||||
{% else %}
|
{% else %}
|
||||||
#ubuntu (or Mint, or pure Debian?)
|
#ubuntu (or Mint, or pure Debian?)
|
||||||
if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ]; then
|
if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ]; then
|
||||||
sed -i -e "s|managed=0|managed=1|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
sed -i "s|managed=0|managed=1|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
||||||
fi
|
fi
|
||||||
echo -e "\nIf you're enabling upstream WiFi, please reboot now.\n"
|
echo -e "\nIf you're enabling upstream WiFi, please reboot now.\n"
|
||||||
#exit 0
|
#exit 0
|
||||||
|
|
Loading…
Reference in a new issue