aboutsummaryrefslogtreecommitdiffstats
path: root/packages/upnpd.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-08 22:08:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-08 22:08:41 +0000
commit3211e85f2367642e9732565c1dedbc5abed28cf2 (patch)
treeb2d6aa328ce90d9d227792449baaf8af29cb20fb /packages/upnpd.xml
parentb4613ece5e9fa7d97f8d0c69c01c154978997385 (diff)
downloadpfsense-packages-3211e85f2367642e9732565c1dedbc5abed28cf2.tar.gz
pfsense-packages-3211e85f2367642e9732565c1dedbc5abed28cf2.tar.bz2
pfsense-packages-3211e85f2367642e9732565c1dedbc5abed28cf2.zip
Use the resync command
Diffstat (limited to 'packages/upnpd.xml')
-rw-r--r--packages/upnpd.xml7
1 files changed, 3 insertions, 4 deletions
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 @@
<name>upnp</name>
<version>0.92_2</version>
<custom_php_command_before_form>
+ </custom_php_command_before_form>
+ <custom_php_resync_config_command>
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");
}
- </custom_php_command_before_form>
- <custom_php_resync_config_command>
- sync_upnp();
+ sync_upnp();
</custom_php_resync_config_command>
<custom_php_install_command>
/* 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();
</custom_php_install_command>
<custom_php_deinstall_command>
mwexec("rm -rf /usr/local/etc/rc.d/upnpd.sh");