summaryrefslogtreecommitdiff
path: root/package/network/services/uhttpd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-10-15 18:19:57 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-10-15 18:19:57 +0000
commit160c2ef0118472b7178d432216ee10aa2df48fe1 (patch)
tree5a05cc2a58726979c8c1fc77aa96ecae521d40cf /package/network/services/uhttpd/files
parent0f6e5b76f8aac652a2ee9ff274ee0d5d3e632921 (diff)
downloadmtk-20170518-160c2ef0118472b7178d432216ee10aa2df48fe1.zip
mtk-20170518-160c2ef0118472b7178d432216ee10aa2df48fe1.tar.gz
mtk-20170518-160c2ef0118472b7178d432216ee10aa2df48fe1.tar.bz2
uhttpd: update to latest git head - introduces support for multiple index files - fixes build with only the TLS module selected
SVN-Revision: 33778
Diffstat (limited to 'package/network/services/uhttpd/files')
-rwxr-xr-xpackage/network/services/uhttpd/files/uhttpd.init8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init
index 379a9f5..ad46d2c 100755
--- a/package/network/services/uhttpd/files/uhttpd.init
+++ b/package/network/services/uhttpd/files/uhttpd.init
@@ -59,7 +59,7 @@ start_instance()
local cfg="$1"
local realm="$(uci_get system.@system[0].hostname)"
- local listen http https interpreter path
+ local listen http https interpreter indexes path
append_arg "$cfg" home "-h"
append_arg "$cfg" realm "-r" "${realm:-OpenWrt}"
@@ -71,7 +71,6 @@ start_instance()
append_arg "$cfg" network_timeout "-T"
append_arg "$cfg" tcp_keepalive "-A"
append_arg "$cfg" error_page "-E"
- append_arg "$cfg" index_page "-I"
append_arg "$cfg" max_requests "-n" 3
append_bool "$cfg" no_symlinks "-S" 0
@@ -88,6 +87,11 @@ start_instance()
append UHTTPD_ARGS "-i $path"
done
+ config_get indexes "$cfg" index_page
+ for path in $indexes; do
+ append UHTTPD_ARGS "-I $path"
+ done
+
config_get https "$cfg" listen_https
config_get UHTTPD_KEY "$cfg" key /etc/uhttpd.key
config_get UHTTPD_CERT "$cfg" cert /etc/uhttpd.crt