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/ifplugd.action | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ifplugd.action') 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 ;; *) -- cgit v1.2.3-24-g4f1b