summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xifplugd/netcfg.action5
1 files changed, 3 insertions, 2 deletions
diff --git a/ifplugd/netcfg.action b/ifplugd/netcfg.action
index f288b01..cffcdf5 100755
--- a/ifplugd/netcfg.action
+++ b/ifplugd/netcfg.action
@@ -29,8 +29,9 @@ case "$2" in
) || exit 0; done
for profile in "${static_profiles[@]}"; do (
load_profile "$profile"
- netcfg "$profile" && exit 0
- ) done
+ netcfg "$profile" && exit 1
+ exit 0
+ ) || exit 0; done
exit 1
;;
down)