uhttpd: update to latest git revision
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.init
index 1ebe38e8d304e85885f3dc78c241c67206c803a9..fcde52a5640f6a037b49f50a25da01bcd050f561 100755 (executable)
@@ -94,6 +94,11 @@ start_instance()
        append_bool "$cfg" no_dirlists "-D" 0
        append_bool "$cfg" rfc1918_filter "-R" 0
 
+       config_get alias_list "$cfg" alias
+       for alias in $alias_list; do
+                procd_append_param command -y "$alias"
+       done
+
        config_get http "$cfg" listen_http
        for listen in $http; do
                 procd_append_param command -p "$listen"
@@ -131,11 +136,6 @@ start_instance()
        }
 
        procd_close_instance
-
-       # Check if daemon is running, if not then
-       # re-execute in foreground to display error.
-#      sleep 1 && service_check $UHTTPD_BIN || \
-#              $UHTTPD_BIN -f $UHTTPD_ARGS
 }
 
 service_triggers()