diff options
Diffstat (limited to 'scripts/netcfg-wpa_actiond')
-rwxr-xr-x | scripts/netcfg-wpa_actiond | 8 |
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 |