diff options
Diffstat (limited to 'ifplugd/netcfg.action')
-rwxr-xr-x | ifplugd/netcfg.action | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ifplugd/netcfg.action b/ifplugd/netcfg.action index b34fe3c..f288b01 100755 --- a/ifplugd/netcfg.action +++ b/ifplugd/netcfg.action @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # ifplugd.action script for netcfg @@ -13,9 +13,11 @@ case "$2" in # dhcp can actually outright fail, whereas # it's difficult to tell if static succeeded # Also check profile is same iface and is right connection + echo "up" declare -a static_profiles for profile in $(list_profiles); do ( load_profile "$profile" + echo "loadin $profile" [[ "$INTERFACE" != "$1" ]] && continue [[ "$CONNECTION" != @(ethernet|ethernet-iproute) ]] && continue if [[ "$IP" == "dhcp" ]]; then @@ -23,6 +25,7 @@ case "$2" in else static_profiles+=("$profile") fi + exit 0 ) || exit 0; done for profile in "${static_profiles[@]}"; do ( load_profile "$profile" |