|
@@ -297,7 +297,7 @@ function wifi_wpa2_psk {
|
297
|
297
|
echo 'iface eth0 inet dhcp' >> /etc/network/interfaces
|
298
|
298
|
echo '' >> /etc/network/interfaces
|
299
|
299
|
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
300
|
|
- echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces
|
|
300
|
+ echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
301
|
301
|
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
302
|
302
|
|
303
|
303
|
wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG
|
|
@@ -323,7 +323,7 @@ function wifi_none {
|
323
|
323
|
echo 'iface eth0 inet dhcp' >> /etc/network/interfaces
|
324
|
324
|
echo '' >> /etc/network/interfaces
|
325
|
325
|
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
326
|
|
- echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces
|
|
326
|
+ echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
327
|
327
|
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
328
|
328
|
|
329
|
329
|
echo 'network={' > $WIFI_CONFIG
|
|
@@ -359,7 +359,7 @@ function networks_from_file {
|
359
|
359
|
echo 'iface eth0 inet dhcp' >> /etc/network/interfaces
|
360
|
360
|
echo '' >> /etc/network/interfaces
|
361
|
361
|
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
362
|
|
- echo "iface ${WIFI_INTERFACE} inet dhcp" >> /etc/network/interfaces
|
|
362
|
+ echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
363
|
363
|
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
364
|
364
|
|
365
|
365
|
# remove wpa_supplicant.conf if it exists
|