diff options
-rw-r--r-- | src/connections/ethernet | 7 | ||||
-rw-r--r-- | src/connections/wireless | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 042b32b..ad9e870 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -116,8 +116,11 @@ ethernet_down() { esac ifconfig $INTERFACE 0.0.0.0 - quirk "nodown" || ifconfig $INTERFACE down - + case "$CONNECTION" in + ethernet|ethernet-old) + quirk "nodown" || ifconfig $INTERFACE down + ;; + esac } ethernet_$1 $2 diff --git a/src/connections/wireless b/src/connections/wireless index 688fa98..f521465 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -118,6 +118,7 @@ wireless_down() { wpa_cli terminate &> /dev/null [[ "$SECURITY" == "wpa" ]] && rm -f "/tmp/wpa.${1// /}" # remove wpa config iwconfig $INTERFACE essid off key off &> /dev/null + ifconfig $INTERFACE down } wireless_$1 $2 |