summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-02-16 12:01:15 +0100
committerJames Rayner <james@archlinux.org>2009-02-16 12:01:15 +0100
commit9550b3675ab99e4bc36f5606a8cd5f0037a6ed00 (patch)
tree41bf7337f0408f7c84edd926b307ac84c62446c5 /src/connections/ethernet
parent540c2d8619f8103c1b4374a50a502ecbec90c953 (diff)
downloadnetctl-9550b3675ab99e4bc36f5606a8cd5f0037a6ed00.tar.gz
netctl-9550b3675ab99e4bc36f5606a8cd5f0037a6ed00.tar.xz
FS#11748 -netcfg takes interface down too early
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet7
1 files changed, 5 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