make list of steering-enabled SSIDs configurable
[project/usteer.git] / openwrt / usteer / files / etc / init.d / usteer
index f89751147c9a813c0ba642aeabd05ed67f811a5c..8f953a7a247603596758e12377c507508d07ba1d 100755 (executable)
@@ -21,6 +21,19 @@ load_ifaces() {
        done
 }
 
+_add_string() {
+       json_add_string "" "$1"
+}
+
+uci_option_to_json_string_array() {
+       local cfg="$1"
+       local option="$2"
+
+       json_add_array "$option"
+       config_list_foreach "$cfg" "$option" _add_string
+       json_close_array
+}
+
 uci_option_to_json_bool() {
        local cfg="$1"
        local option="$2"
@@ -55,6 +68,7 @@ uci_usteer() {
        uci_option_to_json_bool "$cfg" load_kick_enabled
        uci_option_to_json_bool "$cfg" assoc_steering
        uci_option_to_json_string "$cfg" node_up_script
+       uci_option_to_json_string_array "$cfg" ssid_list
 
        for opt in \
                debug_level \