aboutsummaryrefslogtreecommitdiffstats
path: root/config/tftp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-25 15:52:05 -0600
committermcrane <mctch@yahoo.com>2009-08-25 15:53:23 -0600
commitf4da69b1577aab50790745a7b82fa373c6fcaeed (patch)
tree0fbb290b1942c4716059e0e75cb013257e59c64b /config/tftp
parentc3592111b51ff3ff2a7167aca714af36b1d50fab (diff)
downloadpfsense-packages-f4da69b1577aab50790745a7b82fa373c6fcaeed.tar.gz
pfsense-packages-f4da69b1577aab50790745a7b82fa373c6fcaeed.tar.bz2
pfsense-packages-f4da69b1577aab50790745a7b82fa373c6fcaeed.zip
TFTP package fix uninstall error. And fix installation on pfsense 2.0.
Diffstat (limited to 'config/tftp')
-rw-r--r--config/tftp/tftp.inc8
-rw-r--r--config/tftp/tftp.xml2
2 files changed, 8 insertions, 2 deletions
diff --git a/config/tftp/tftp.inc b/config/tftp/tftp.inc
index a6d91af9..ba77818a 100644
--- a/config/tftp/tftp.inc
+++ b/config/tftp/tftp.inc
@@ -262,6 +262,11 @@ function php_deinstall_command()
{
//prepare inetd.conf for tftp
+ //tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
+
+ //pfsense 2.0 conflicting entry
+ //tftp dgram udp wait root /usr/local/sbin/tftp-proxy -v
+
$filename = "/etc/inetd.conf";
$handle = fopen($filename,"rb");
$contents = fread($handle, filesize($filename));
@@ -269,9 +274,10 @@ function php_deinstall_command()
$handle = fopen($filename,"w");
$contents = str_replace("tftp dgram", "#tftp dgram", $contents);
+ $contents = str_replace("tftpd -l -s /tftpboot", "/usr/local/sbin/tftp-proxy -v", $contents);
fwrite($handle, $contents);
unset($contents);
- fclose($fout);
+ fclose($handle);
unset($filename);
exec("killall -9 inetd");
diff --git a/config/tftp/tftp.xml b/config/tftp/tftp.xml
index 9496363e..5a2cefa5 100644
--- a/config/tftp/tftp.xml
+++ b/config/tftp/tftp.xml
@@ -41,7 +41,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>tftp Settings</name>
- <version>1.0.6</version>
+ <version>1.0.7</version>
<title>TFTP: Settings</title>
<include_file>/usr/local/pkg/tftp.inc</include_file>
<menu>