summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-01-05 22:45:58 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-01-05 22:45:58 +0100
commit12f38d77c17df916eec0fb1440bf1941c2b55fcd (patch)
treea62ce0cd1bc022e062911f0973c09c01e94d4056 /src/lib
parent6539dfe0df5c19e8acb8fe251b46098a25719cbc (diff)
downloadnetctl-12f38d77c17df916eec0fb1440bf1941c2b55fcd.tar.gz
netctl-12f38d77c17df916eec0fb1440bf1941c2b55fcd.tar.xz
Fix stopping wired connections
- Stop dhcpcd also when DHCPClient is not specified - Exit successfully in ifplugd on going down
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ip2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ip b/src/lib/ip
index f2f787d..5caa0fc 100644
--- a/src/lib/ip
+++ b/src/lib/ip
@@ -188,7 +188,7 @@ ip_set() {
# $IP6: type of IPv6 configuration
ip_unset() {
if [[ "$IP" == "dhcp" ]]; then
- case $DHCPClient in
+ case ${DHCPClient:-dhcpcd} in
dhcpcd)
if [[ -f "/run/dhcpcd-$Interface.pid" ]]; then
do_debug dhcpcd -qk "$Interface" >/dev/null