summaryrefslogtreecommitdiffstats
path: root/ifplugd
diff options
context:
space:
mode:
Diffstat (limited to 'ifplugd')
-rwxr-xr-xifplugd/netcfg.action6
1 files changed, 3 insertions, 3 deletions
diff --git a/ifplugd/netcfg.action b/ifplugd/netcfg.action
index 25942d1..b34fe3c 100755
--- a/ifplugd/netcfg.action
+++ b/ifplugd/netcfg.action
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# ifplugd.action script for netcfg
@@ -19,11 +19,11 @@ case "$2" in
[[ "$INTERFACE" != "$1" ]] && continue
[[ "$CONNECTION" != @(ethernet|ethernet-iproute) ]] && continue
if [[ "$IP" == "dhcp" ]]; then
- netcfg "$profile" && exit 0
+ netcfg "$profile" && exit 1
else
static_profiles+=("$profile")
fi
- ) done
+ ) || exit 0; done
for profile in "${static_profiles[@]}"; do (
load_profile "$profile"
netcfg "$profile" && exit 0