summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ifplugd.action5
-rw-r--r--src/lib/ip2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ifplugd.action b/src/ifplugd.action
index 9716bce..617902f 100755
--- a/src/ifplugd.action
+++ b/src/ifplugd.action
@@ -44,7 +44,10 @@ case "$2" in
;;
down)
if [[ -e "$PROFILE_FILE" ]]; then
- "$SUBR_DIR/network" stop "$(< "$PROFILE_FILE")" && rm -f "$PROFILE_FILE"
+ if ForceConnect=yes "$SUBR_DIR/network" stop "$(< "$PROFILE_FILE")"; then
+ rm -f "$PROFILE_FILE"
+ exit 0
+ fi
fi
;;
*)
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