diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-08 22:02:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-08 22:02:23 +0000 |
commit | b4613ece5e9fa7d97f8d0c69c01c154978997385 (patch) | |
tree | dd3d3a3ec6e4b1be86352de66fae4600959a5d1c | |
parent | 78b8458868710b32a8b9ce8e30e92d4dfbaf7502 (diff) | |
download | pfsense-packages-b4613ece5e9fa7d97f8d0c69c01c154978997385.tar.gz pfsense-packages-b4613ece5e9fa7d97f8d0c69c01c154978997385.tar.bz2 pfsense-packages-b4613ece5e9fa7d97f8d0c69c01c154978997385.zip |
Move code to <custom_php_command_before_form>
-rw-r--r-- | packages/upnpd.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/upnpd.xml b/packages/upnpd.xml index 0a8517d4..2b6d23e2 100644 --- a/packages/upnpd.xml +++ b/packages/upnpd.xml @@ -2,7 +2,7 @@ <packagegui> <name>upnp</name> <version>0.92_2</version> - <custom_php_resync_config_command> + <custom_php_command_before_form> function sync_upnp() { $lanif = $config['interfaces']['lan']['if']; $wanif = get_real_wan_interface(); @@ -28,6 +28,8 @@ /* 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(); </custom_php_resync_config_command> <custom_php_install_command> |