From 605573a204062a681f92e7b8f3875e85d702d31c Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 3 Jul 2011 19:04:24 +0200 Subject: ethernet: also stop dhclient when used for DHCPv6 --- src/connections/ethernet | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/connections/ethernet') diff --git a/src/connections/ethernet b/src/connections/ethernet index 03439e8..3743dc8 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -228,6 +228,14 @@ ethernet_down() { fi fi fi + if [[ "$IP6" == dhcp* ]]; then + if [[ -f "/run/dhclient6-$INTERFACE.pid" ]]; then + report_debug ethernet_down dhclient -6 -q -x "$INTERFACE" + dhclient -6 -q -x "$INTERFACE" &>/dev/null + report_debug ethernet_down /bin/kill $(cat /run/dhclient6-$INTERFACE.pid) + /bin/kill $(cat /run/dhclient6-$INTERFACE.pid) &>/dev/null + fi + fi stop_80211x -- cgit v1.2.3-24-g4f1b