From 9797f90b529d80062f19a830aafa4e4a5e8d79cf Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 7 Aug 2011 00:35:30 +0200 Subject: Better quoting of $profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng --- wpa_actiond/netcfg-wpa_actiond | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'wpa_actiond') 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 -- cgit v1.2.3-24-g4f1b