aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp/tftp.inc
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-26 20:00:08 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-26 20:00:08 +0000
commit68e96fbf345846169ffeed749641ad0f4a2ab5eb (patch)
tree68956af6451d8fe8a35ec6befa1123812c405ea4 /packages/tftp/tftp.inc
parent3c773829dac7f4a71f9667b5901d530e8dfeaced (diff)
downloadpfsense-packages-68e96fbf345846169ffeed749641ad0f4a2ab5eb.tar.gz
pfsense-packages-68e96fbf345846169ffeed749641ad0f4a2ab5eb.tar.bz2
pfsense-packages-68e96fbf345846169ffeed749641ad0f4a2ab5eb.zip
TFTP package add file upload to the tftpboot directory.
Diffstat (limited to 'packages/tftp/tftp.inc')
-rw-r--r--packages/tftp/tftp.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/tftp/tftp.inc b/packages/tftp/tftp.inc
index e487247d..deed9c48 100644
--- a/packages/tftp/tftp.inc
+++ b/packages/tftp/tftp.inc
@@ -118,7 +118,7 @@ function php_install_command()
fclose($handle);
$handle = fopen($filename,"w");
- $contents = str_replace("#tftp dgram udp wait root /usr/libexec/tftpd", "tftp dgram udp wait root /usr/libexec/tftpd", $contents);
+ $contents = str_replace("\#tftp dgram udp wait root /usr/libexec/tftpd", "tftp dgram udp wait root /usr/libexec/tftpd", $contents);
fwrite($handle, $contents);
unset($contents);
fclose($handle);
@@ -140,7 +140,7 @@ function php_install_command()
write_rcfile(array(
"file" => "tftp.sh",
- "start" => "/usr/sbin/inetd",
+ "start" => "/usr/sbin/./inetd",
"stop" => "killall -9 /usr/sbin/inetd"
)
);
@@ -170,7 +170,7 @@ function php_deinstall_command()
fclose($handle);
$handle = fopen($filename,"w");
- $contents = str_replace("tftp dgram udp wait root /usr/libexec/tftpd", "#tftp dgram udp wait root /usr/libexec/tftpd", $contents);
+ $contents = str_replace("tftp dgram udp wait root /usr/libexec/tftpd", "\#tftp dgram udp wait root /usr/libexec/tftpd", $contents);
fwrite($handle, $contents);
unset($contents);
fclose($fout);