summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2008-08-05 17:00:28 +0200
committerJames Rayner <james@archlinux.org>2008-08-05 17:00:28 +0200
commitbbc8c444c204fdce496468190a1f5ec4931c4e53 (patch)
tree2ca79efc2f5169eefd8b1f0d65aeb4ba0893ea1c /src
parent01cee06607cbea5aaffbb0c5216cff3a17a3f7b4 (diff)
downloadnetctl-bbc8c444c204fdce496468190a1f5ec4931c4e53.tar.gz
netctl-bbc8c444c204fdce496468190a1f5ec4931c4e53.tar.xz
Take interface down after disconnecting. Quirk 'nodown' to disable behaviour FS#10708
Diffstat (limited to 'src')
-rw-r--r--src/ethernet.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ethernet.subr b/src/ethernet.subr
index 12da9b5..fd46ec3 100644
--- a/src/ethernet.subr
+++ b/src/ethernet.subr
@@ -107,6 +107,9 @@ ethernet_down() {
;;
esac
ifconfig $INTERFACE 0.0.0.0
+
+ quirk "nodown" || ifconfig $INTERFACE down
+
}
ethernet_clean_scope() {