From bd8a19405fc0113cb45e8b861d931a6d7fac6813 Mon Sep 17 00:00:00 2001 From: Tim Yardley Date: Wed, 29 Nov 2006 02:55:22 +0000 Subject: [PATCH] fix for init script per xwrt:r1461 SVN-Revision: 5675 --- net/miniupnpd/files/miniupnpd.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/miniupnpd/files/miniupnpd.init b/net/miniupnpd/files/miniupnpd.init index 6a2c0d15c..147291af3 100644 --- a/net/miniupnpd/files/miniupnpd.init +++ b/net/miniupnpd/files/miniupnpd.init @@ -9,6 +9,7 @@ if [ "$upnpd_enabled" = "1" ]; then # get bitspeed information, if provided upnpd_up_bitspeed=$(nvram get upnpd_up_bitspeed) upnpd_down_bitspeed=$(nvram get upnpd_down_bitspeed) + bitspeed_str="" [ -n "$upnpd_up_bitspeed" ] && [ -n "$upnpd_down_bitspeed" ] && { # covert to bytespeed let upnpd_up_bytespeed=$upnpd_up_bitspeed*1024/8 @@ -17,9 +18,9 @@ if [ "$upnpd_enabled" = "1" ]; then } upnpd_log=$(nvram get upnpd_log_output) if [ "$upnpd_log" = "1" ]; then - miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U "$bitspeed_str" -d | logger -t miniupnpd & + miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U $bitspeed_str -d | logger -t miniupnpd & else - miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U "$bitspeed_str" + miniupnpd -i $(nvram get wan_ifname) -a $(nvram get lan_ipaddr) -p 5000 -U $bitspeed_str fi else echo "miniupnpd service is disabled. Set nvram upnp_enabled to '1' to enable." -- 2.30.2