summaryrefslogtreecommitdiffstats
path: root/wpa_actiond/netcfg-wpa_actiond
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_actiond/netcfg-wpa_actiond')
-rwxr-xr-xwpa_actiond/netcfg-wpa_actiond10
1 files changed, 7 insertions, 3 deletions
diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond
index 3bbb9fc..9ad319f 100755
--- a/wpa_actiond/netcfg-wpa_actiond
+++ b/wpa_actiond/netcfg-wpa_actiond
@@ -51,10 +51,14 @@ fi
WPA_CONF="$(make_wpa_config_file $interface)"
-for profile in ${AUTO_PROFILES:-$(list_profiles)}; do
- echo $profile
+if [[ -n "${AUTO_PROFILES}" ]]; then
+ for prof in ${AUTO_PROFILES}; do echo $prof; done
+else
+ list_profiles
+fi | while read profile; do
+ echo "$profile"
(
- load_profile $profile
+ load_profile "$profile"
[[ $CONNECTION != "wireless" ]] && exit 1
[[ $INTERFACE != $interface ]] && exit 1