Changeset 5896
- Timestamp:
- 03/21/10 03:35:28 (3 years ago)
- Location:
- luci/trunk/contrib/package/uhttpd/files
- Files:
-
- 2 modified
-
uhttpd.config (modified) (2 diffs)
-
uhttpd.init (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/contrib/package/uhttpd/files/uhttpd.config
r5876 r5896 11 11 # CGI url prefix, will be searched in docroot. 12 12 # Default is /cgi-bin 13 option cgi_prefix /cgi-bin13 option cgi_prefix /cgi-bin 14 14 15 15 # Lua url prefix and handler script. … … 26 26 # list listen_https [::]:443 27 27 28 # Basic auth realm, defaults to local hostname 29 # option realm OpenWrt 30 31 # Configuration file in busybox httpd format 32 # option config /etc/httpd.conf -
luci/trunk/contrib/package/uhttpd/files/uhttpd.init
r5876 r5896 19 19 local var="$2" 20 20 local opt="$3" 21 local def="$4" 21 22 local val 22 23 23 24 config_get val "$cfg" "$var" 24 [ -n "$val" ] && append UHTTPD_ARGS "$opt $val"25 [ -n "$val" -o -n "$def" ] && append UHTTPD_ARGS "$opt ${val:-$def}" 25 26 } 26 27 … … 30 31 31 32 local cfg="$1" 33 local realm="$(uci get system.@system[0].hostname 2>/dev/null)" 32 34 local ssl 33 35 34 36 append_arg "$cfg" home "-h" 35 append_arg "$cfg" cgi_prefix "-c" 37 append_arg "$cfg" realm "-r" "${realm:-OpenWrt}" 38 append_arg "$cfg" config "-c" 39 append_arg "$cfg" cgi_prefix "-x" 36 40 append_arg "$cfg" lua_prefix "-l" 37 41 append_arg "$cfg" lua_handler "-L"
