From 12f38d77c17df916eec0fb1440bf1941c2b55fcd Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sat, 5 Jan 2013 22:45:58 +0100 Subject: Fix stopping wired connections - Stop dhcpcd also when DHCPClient is not specified - Exit successfully in ifplugd on going down --- src/lib/ip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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 -- cgit v1.2.3-24-g4f1b