diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-26 20:39:51 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-26 20:39:51 +0000 |
commit | 0830b551dc10a909f826f8352a1627bcb1136cbe (patch) | |
tree | ce23671e15336306b7ca246d7ec217aff0c1e292 /packages/tftp/tftp.inc | |
parent | 68e96fbf345846169ffeed749641ad0f4a2ab5eb (diff) | |
download | pfsense-packages-0830b551dc10a909f826f8352a1627bcb1136cbe.tar.gz pfsense-packages-0830b551dc10a909f826f8352a1627bcb1136cbe.tar.bz2 pfsense-packages-0830b551dc10a909f826f8352a1627bcb1136cbe.zip |
TFTP package interface changes, fix /etc/inetd.conf so that tftp is enabled properly.
Diffstat (limited to 'packages/tftp/tftp.inc')
-rw-r--r-- | packages/tftp/tftp.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/tftp/tftp.inc b/packages/tftp/tftp.inc index deed9c48..de6b90db 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,8 +140,8 @@ function php_install_command() write_rcfile(array( "file" => "tftp.sh", - "start" => "/usr/sbin/./inetd", - "stop" => "killall -9 /usr/sbin/inetd" + "start" => "/usr/sbin/inetd", + "stop" => "killall -9 inetd" ) ); @@ -170,13 +170,13 @@ 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); unset($filename); - exec("killall -9 /usr/sbin/inetd"); + exec("killall -9 inetd"); unlink_if_exists("/usr/local/pkg/tftp.xml"); unlink_if_exists("/usr/local/pkg/tftp.inc"); |