From 1a907219b09c3c98e62773b009c2a0d0dc4cee89 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Oct 2016 15:50:17 +0100 Subject: [PATCH] use dhcp --- src/freedombone-utils-wifi | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/freedombone-utils-wifi b/src/freedombone-utils-wifi index cdf315a1..ed2c31ea 100755 --- a/src/freedombone-utils-wifi +++ b/src/freedombone-utils-wifi @@ -297,10 +297,8 @@ function wifi_wpa2_psk { echo 'iface eth0 inet dhcp' >> /etc/network/interfaces echo '' >> /etc/network/interfaces echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces - echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces + echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces - echo '' >> /etc/network/interfaces - echo 'iface default inet dhcp' >> /etc/network/interfaces wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG @@ -325,10 +323,8 @@ function wifi_none { echo 'iface eth0 inet dhcp' >> /etc/network/interfaces echo '' >> /etc/network/interfaces echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces - echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces + echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces - echo '' >> /etc/network/interfaces - echo 'iface default inet dhcp' >> /etc/network/interfaces echo 'network={' > $WIFI_CONFIG echo " ssid=\"${ssid}\"" >> $WIFI_CONFIG @@ -363,10 +359,8 @@ function networks_from_file { echo 'iface eth0 inet dhcp' >> /etc/network/interfaces echo '' >> /etc/network/interfaces echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces - echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces + echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces - echo '' >> /etc/network/interfaces - echo 'iface default inet dhcp' >> /etc/network/interfaces # remove wpa_supplicant.conf if it exists if [ -f $WIFI_CONFIG ]; then