Roaming dhcp
This commit is contained in:
parent
74640a2a9a
commit
7535e8b988
|
@ -301,6 +301,9 @@ function wifi_wpa2_psk {
|
|||
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
||||
echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
||||
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
||||
echo '' >> /etc/network/interfaces
|
||||
echo '#this line must always be here' >> /etc/network/interfaces
|
||||
echo 'iface default inet dhcp' >> /etc/network/interfaces
|
||||
|
||||
wpa_passphrase "$ssid" "$passphrase" > $WIFI_CONFIG
|
||||
|
||||
|
@ -327,6 +330,9 @@ function wifi_none {
|
|||
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
||||
echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
||||
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
||||
echo '' >> /etc/network/interfaces
|
||||
echo '#this line must always be here' >> /etc/network/interfaces
|
||||
echo 'iface default inet dhcp' >> /etc/network/interfaces
|
||||
|
||||
echo 'update_config=1' > $WIFI_CONFIG
|
||||
echo 'eapol_version=1' >> $WIFI_CONFIG
|
||||
|
@ -369,6 +375,9 @@ function networks_from_file {
|
|||
echo "allow-hotplug ${WIFI_INTERFACE}" >> /etc/network/interfaces
|
||||
echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
||||
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
||||
echo '' >> /etc/network/interfaces
|
||||
echo '#this line must always be here' >> /etc/network/interfaces
|
||||
echo 'iface default inet dhcp' >> /etc/network/interfaces
|
||||
|
||||
# remove wpa_supplicant.conf if it exists
|
||||
if [ -f $WIFI_CONFIG ]; then
|
||||
|
|
Loading…
Reference in New Issue