summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-06-25 00:04:00 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-06-25 00:04:00 +0200
commit12d1e774cee5058c6fe9ec8505772afb7091ed3a (patch)
tree50d8619aedd1b2a5eb5ed4f1c0a7effc6311c885 /scripts
parent3fcb56d6743fc1c00ae4d05b671e221ea3df6492 (diff)
downloadnetctl-12d1e774cee5058c6fe9ec8505772afb7091ed3a.tar.gz
netctl-12d1e774cee5058c6fe9ec8505772afb7091ed3a.tar.xz
Make AUTO_PROFILES an array
The previous commit alters the config file (/etc/conf.d/netcfg), marking the right moment for this change.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netcfg-wpa_actiond8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/netcfg-wpa_actiond b/scripts/netcfg-wpa_actiond
index 72f3231..744b7af 100755
--- a/scripts/netcfg-wpa_actiond
+++ b/scripts/netcfg-wpa_actiond
@@ -52,7 +52,13 @@ fi
WPA_CONF="$(make_wpa_config_file $interface)"
if [[ -n "${AUTO_PROFILES}" ]]; then
- for prof in ${AUTO_PROFILES}; do echo $prof; done
+ # At some point, this can be removed.
+ if [[ ${#AUTO_PROFILES[@]} -eq 1 ]]; then
+ report_err "Please convert AUTO_PROFILES to an array in /etc/conf.d/netcfg."
+ AUTO_PROFILES=($AUTO_PROFILES)
+ fi
+
+ for prof in "${AUTO_PROFILES[@]}"; do echo "$prof"; done
else
list_profiles
fi | while read profile; do