--- netcfg.action 2010-02-18 10:14:44.000000000 +0100 +++ netcfg.action.works 2010-02-19 15:04:25.000000000 +0100 @@ -15,7 +15,7 @@ # Also check profile is same iface and is right connection echo "up" declare -a static_profiles - for profile in $(list_profiles); do ( + for profile in $(list_profiles); do load_profile "$profile" echo "loadin $profile" [[ "$INTERFACE" != "$1" ]] && continue @@ -25,8 +25,7 @@ else static_profiles+=("$profile") fi - exit 0 - ) || exit 0; done +done for profile in "${static_profiles[@]}"; do ( load_profile "$profile" netcfg "$profile" && exit 1