In case one needs to have the following

# cat /etc/config/httpd

config 'httpd'
        option 'port' '192.168.2.1:80'
        option 'home' '/www'

config 'httpd'
        option 'port' '192.168.1.1:80'
        option 'home' '/usr/share/NoCatSplash/htdocs'

the below patch will enable httpd init script to handle these two
different config sections.


Signed-off-by: Pedro Faustino <[EMAIL PROTECTED]>


--- httpd.actual        2008-02-28 20:56:09.000000000 +0100
+++ httpd.new   2008-07-08 15:29:19.000000000 +0200
@@ -11,6 +11,7 @@
 }

 httpd_config() {
+       unset args
        local cfg="$1"
        local c_file port realm home

@@ -36,7 +37,6 @@
        config_foreach system_config system
        hostname="${hostname:-OpenWrt}"

-       unset args
        config_load httpd
        [ "$?" != "0" ] && {
                uci_set_default httpd <<EOF
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to