summaryrefslogtreecommitdiffstats
path: root/wpa_actiond
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-08-07 00:35:30 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-08-07 00:35:30 +0200
commit9797f90b529d80062f19a830aafa4e4a5e8d79cf (patch)
tree32737a068639f842f911a3b360bf734765873442 /wpa_actiond
parent124580abf297b9b6ce1a7558feee1e38d68fe9d9 (diff)
downloadnetctl-9797f90b529d80062f19a830aafa4e4a5e8d79cf.tar.gz
netctl-9797f90b529d80062f19a830aafa4e4a5e8d79cf.tar.xz
Better quoting of $profile
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to '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