[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 12404bd..b62ff1c 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))"