diff --git a/roles/network/templates/network/iiab-hotspot-off b/roles/network/templates/network/iiab-hotspot-off index 1f6e1283e..d3f811365 100755 --- a/roles/network/templates/network/iiab-hotspot-off +++ b/roles/network/templates/network/iiab-hotspot-off @@ -28,7 +28,7 @@ systemctl restart dhcpcd #fi {% else %} #ubuntu -if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ] +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 fi echo -e "\nPlease reboot to enable upstream WiFi access.\n" diff --git a/roles/network/templates/network/iiab-hotspot-on b/roles/network/templates/network/iiab-hotspot-on index 2c0854b82..34d1cda46 100755 --- a/roles/network/templates/network/iiab-hotspot-on +++ b/roles/network/templates/network/iiab-hotspot-on @@ -29,7 +29,7 @@ systemctl start dnsmasq #fi {% else %} #ubuntu -if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ] +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 fi systemctl enable hostapd diff --git a/roles/network/templates/network/systemd-static-net.j2 b/roles/network/templates/network/systemd-static-net.j2 index 64274f5e5..da82d7f26 100644 --- a/roles/network/templates/network/systemd-static-net.j2 +++ b/roles/network/templates/network/systemd-static-net.j2 @@ -1,4 +1,4 @@ -# /etc/systemd/network/IIAB-static.network +# /etc/systemd/network/IIAB-Static.network [Match] Name={{ iiab_wan_iface }} @@ -6,7 +6,5 @@ Name={{ iiab_wan_iface }} Address={{ wan_ip }}/{{ wan_cidr }} Gateway={{ wan_gateway }} LinkLocalAddressing=yes -DNS={{ wan_namserver }} +DNS={{ wan_nameserver }} Domains={{ iiab_domain }} - -