diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-07-03 19:04:24 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-07-03 19:04:24 +0200 |
commit | 605573a204062a681f92e7b8f3875e85d702d31c (patch) | |
tree | f0bcd3cc612fd8e97a966f306a3d79daa0699869 /src | |
parent | f9b577df6c56a55703b5e5ed852d18f5a4e702ae (diff) | |
download | netctl-605573a204062a681f92e7b8f3875e85d702d31c.tar.gz netctl-605573a204062a681f92e7b8f3875e85d702d31c.tar.xz |
ethernet: also stop dhclient when used for DHCPv6
Diffstat (limited to 'src')
-rw-r--r-- | src/connections/ethernet | 8 |
1 files changed, 8 insertions, 0 deletions
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 |