miniupnpd: Added uci option notify_interval and presentation_url
authorDaniel Dickinson <crazycshore@gmail.com>
Sun, 6 Mar 2011 19:14:11 +0000 (19:14 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Sun, 6 Mar 2011 19:14:11 +0000 (19:14 +0000)
SVN-Revision: 25902

net/miniupnpd/files/miniupnpd.init

index a53fa2d37f9a98ec927f14774c6de40a75aad77e..aa9eb41221bf42dcd7fc1b78e2c475df122544e2 100644 (file)
@@ -8,7 +8,7 @@ start() {
        config_load "upnpd"
        local extiface intiface upload download logging secure enabled natpmp
        local extip port usesysuptime conffile serial_number model_number
-       local uuid
+       local uuid notify_interval presentation_url
 
        config_get extiface config external_iface
        config_get intiface config internal_iface
@@ -25,6 +25,8 @@ start() {
        config_get serial_number config serial_number
        config_get model_number config model_number
        config_get uuid config uuid
+       config_get notify_interval config notify_interval
+       config_get presentation_url config presentation_url
 
        include /lib/network
        scan_interfaces
@@ -78,6 +80,11 @@ start() {
                [ "$uuid" = "nocli" ] || \
                        append args "-u $uuid"
                
+               [ -n "${notify_interval}" ] && \
+                       append args "-t ${notify_interval}"
+                       
+               [ -n "${presentation_url}" ] && \
+                       append args "-w \"${presentation_url}\""                        
                # start firewall
                local zone
                config_load firewall