mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-hotspot-on: sed "-e" flag optional
This commit is contained in:
parent
319b75fe7d
commit
9ed5cd53c7
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ echo -e "If you add Wi-Fi hardware, run 'cd /opt/iiab/iiab' then 'sudo ./iiab-ne
|
||||||
echo -e "For details, see: https://github.com/iiab/iiab/pull/3179\n"
|
echo -e "For details, see: https://github.com/iiab/iiab/pull/3179\n"
|
||||||
exit 1
|
exit 1
|
||||||
{% else %}
|
{% else %}
|
||||||
sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=True/" {{ iiab_env_file }}
|
sed -i "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=True/" {{ iiab_env_file }}
|
||||||
{% if wifi_up_down %}
|
{% if wifi_up_down %}
|
||||||
systemctl enable iiab-clone-wifi.service
|
systemctl enable iiab-clone-wifi.service
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
|
@ -19,7 +19,7 @@ systemctl enable iiab-wifi-test.service
|
||||||
{% if is_raspbian %}
|
{% if is_raspbian %}
|
||||||
# just do what we have always done in hotspot-on
|
# just do what we have always done in hotspot-on
|
||||||
cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
||||||
sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf
|
sed -i "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf
|
||||||
# shut down wlan0 in case connected to network
|
# shut down wlan0 in case connected to network
|
||||||
ip link set wlan0 down
|
ip link set wlan0 down
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
|
@ -39,7 +39,7 @@ systemctl start dnsmasq
|
||||||
{% 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=1|managed=0|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
sed -i "s|managed=1|managed=0|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
||||||
fi
|
fi
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
#exit 0
|
#exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue