aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp/tftp.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tftp/tftp.inc')
-rw-r--r--packages/tftp/tftp.inc10
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");