diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-26 20:00:08 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-26 20:00:08 +0000 |
commit | 68e96fbf345846169ffeed749641ad0f4a2ab5eb (patch) | |
tree | 68956af6451d8fe8a35ec6befa1123812c405ea4 /packages/tftp/tftp.inc | |
parent | 3c773829dac7f4a71f9667b5901d530e8dfeaced (diff) | |
download | pfsense-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.inc | 6 |
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); |