aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-06-07 22:30:39 +0000
committerColin Smith <colin@pfsense.org>2005-06-07 22:30:39 +0000
commit2c51a1fa75ae8874672fcfd78bd682afdc502e03 (patch)
treefb13b868686e44a32ba2ab46897d3f6c0cd9d721
parent7364cb35d3bdd7409f7d5e06a5921b18d65ec2b7 (diff)
downloadpfsense-packages-2c51a1fa75ae8874672fcfd78bd682afdc502e03.tar.gz
pfsense-packages-2c51a1fa75ae8874672fcfd78bd682afdc502e03.tar.bz2
pfsense-packages-2c51a1fa75ae8874672fcfd78bd682afdc502e03.zip
Cleanup.
-rw-r--r--packages/upnpd.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/upnpd.xml b/packages/upnpd.xml
index 111ff61f..07cff3ac 100644
--- a/packages/upnpd.xml
+++ b/packages/upnpd.xml
@@ -8,9 +8,9 @@
$wanif = get_real_wan_interface();
$lanip = find_interface_ip($lanif);
/* copy original, we're going to overwrite ADDR with our internal ip */
- mwexec("cp /usr/local/etc/linuxigd/gatedesc.xml.bak /usr/local/etc/linuxigd/gatedesc.xml");
+ copy("/usr/local/etc/linuxigd/gatedesc.xml.bak", "/usr/local/etc/linuxigd/gatedesc.xml");
/* replace ADDR with LAN ip */
- $file_contents = return_filename_as_string("/usr/local/etc/linuxigd/gatedesc.xml");
+ $file_contents = file_get_contents("/usr/local/etc/linuxigd/gatedesc.xml");
$file_contents = str_replace("!ADDR!","{$lanip}",$file_contents);
$fout = fopen("/usr/local/etc/linuxigd/gatedesc.xml", "w");
fwrite($fout, $file_contents);
@@ -32,7 +32,7 @@
</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 */
- mwexec("cp /usr/local/etc/linuxigd/gatedesc.xml /usr/local/etc/linuxigd/gatedesc.xml.bak");
+ copy("/usr/local/etc/linuxigd/gatedesc.xml", "/usr/local/etc/linuxigd/gatedesc.xml.bak");
function sync_upnp();
</custom_php_install_command>
<custom_php_deinstall_command>