diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-08-07 00:35:30 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-08-07 00:35:30 +0200 |
commit | 9797f90b529d80062f19a830aafa4e4a5e8d79cf (patch) | |
tree | 32737a068639f842f911a3b360bf734765873442 /wpa_actiond | |
parent | 124580abf297b9b6ce1a7558feee1e38d68fe9d9 (diff) | |
download | netctl-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-x | wpa_actiond/netcfg-wpa_actiond | 10 |
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 |