projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uhttpd: add config option for json_script
[openwrt/openwrt.git]
/
package
/
network
/
services
/
uhttpd
/
files
/
uhttpd.init
diff --git
a/package/network/services/uhttpd/files/uhttpd.init
b/package/network/services/uhttpd/files/uhttpd.init
index e7709941c22de5bc6d07cc94683fab1e64fdaac6..30fd7b4259d93f275177aba3af3e633df0b13832 100755
(executable)
--- a/
package/network/services/uhttpd/files/uhttpd.init
+++ b/
package/network/services/uhttpd/files/uhttpd.init
@@
-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