[packages] miniupnpd: Added option to change port. Default set to 5000 as before...
authorDaniel Dickinson <crazycshore@gmail.com>
Sun, 6 Mar 2011 18:56:59 +0000 (18:56 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Sun, 6 Mar 2011 18:56:59 +0000 (18:56 +0000)
SVN-Revision: 25897

net/miniupnpd/files/miniupnpd.init

index 12404bd48f5e695f857291e7f7338a0922d8b2a3..b62ff1ce7b7940f8aa3b7e76ee50bbb76acd0f08 100644 (file)
@@ -12,6 +12,7 @@ start() {
        config_get extiface config external_iface
        config_get intiface config internal_iface
        config_get extip config external_ip
+       config_get port config port 5000
        config_get upload   config upload
        config_get download config download
        config_get_bool logging config log_output 0
@@ -38,7 +39,10 @@ start() {
                        [ -n "$ipaddr" ] && append args "-a $ipaddr"
                done
 
-               append args "-p 5000 -U"
+               [ "$port" != "auto" ] && \
+                       append args "-p $port"
+               
+               append args "-U"
 
                [ -n "$upload" -a -n "$download" ] && \
                        append args "-B $(($download * 1024 * 8)) $(($upload * 1024 * 8))"