From 3211e85f2367642e9732565c1dedbc5abed28cf2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 8 Jun 2005 22:08:41 +0000 Subject: Use the resync command --- packages/upnpd.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/upnpd.xml b/packages/upnpd.xml index 2b6d23e2..df99cef6 100644 --- a/packages/upnpd.xml +++ b/packages/upnpd.xml @@ -3,6 +3,8 @@ upnp 0.92_2 + + function sync_upnp() { $lanif = $config['interfaces']['lan']['if']; $wanif = get_real_wan_interface(); @@ -28,14 +30,11 @@ /* alright, thats all we need. start up! */ mwexec("/usr/local/etc/rc.d/upnpd.sh"); } - - - sync_upnp(); + sync_upnp(); /* we need to update the files ADDR from time to time which is the lan ip */ copy("/usr/local/etc/linuxigd/gatedesc.xml", "/usr/local/etc/linuxigd/gatedesc.xml.bak"); - sync_upnp(); mwexec("rm -rf /usr/local/etc/rc.d/upnpd.sh"); -- cgit v1.2.3