uhttpd: add config option for json_script
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.init
index e7709941c22de5bc6d07cc94683fab1e64fdaac6..30fd7b4259d93f275177aba3af3e633df0b13832 100755 (executable)
@@ -196,7 +196,8 @@ start_instance()
                append_bool "$cfg" redirect_https "-q" 0
        }
 
-       for file in /etc/uhttpd/*.json; do
+       config_get json_script "$cfg" json_script
+       for file in $json_script; do
                [ -s "$file" ] && procd_append_param command -H "$file"
        done