From 0830b551dc10a909f826f8352a1627bcb1136cbe Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 26 Dec 2008 20:39:51 +0000 Subject: TFTP package interface changes, fix /etc/inetd.conf so that tftp is enabled properly. --- packages/tftp/tftp.inc | 10 +++++----- packages/tftp/tftp.xml | 2 +- packages/tftp/tftp_files.tmp | 40 +++++++++++----------------------------- pkg_config.7.xml | 2 +- 4 files changed, 18 insertions(+), 36 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"); diff --git a/packages/tftp/tftp.xml b/packages/tftp/tftp.xml index 812789e6..8ede05ce 100644 --- a/packages/tftp/tftp.xml +++ b/packages/tftp/tftp.xml @@ -41,7 +41,7 @@ Describe your package requirements here Currently there are no FAQ items provided. tftp Settings - 0.7 + 0.7.1 TFTP: Settings /usr/local/pkg/tftp.inc diff --git a/packages/tftp/tftp_files.tmp b/packages/tftp/tftp_files.tmp index d79d39a2..78f59442 100644 --- a/packages/tftp/tftp_files.tmp +++ b/packages/tftp/tftp_files.tmp @@ -109,9 +109,11 @@ include("head.inc");
+
File to upload: @@ -126,22 +128,16 @@ include("head.inc");
- + +
+
- - + \n"; echo " \n"; - echo " \n"; + //echo " \n"; echo "
Name  - - - - - -
-
\n"; echo " \n"; - echo " $file"; + echo " $file"; echo " "; echo " \n"; - echo " "; - echo " \n"; + //echo " "; + //echo " \n"; echo " \n"; echo " \n"; @@ -174,20 +170,6 @@ include("head.inc"); } ?> - - - - - diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 4067f984..acebfff7 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -80,7 +80,7 @@ http://www.pfsense.com/packages/config/tftp/tftp.xmlhttp://files.pfsense.org/packages/7/All/ - 0.7 + 0.7.1Alpha1.2.1markjcrane@gmail.com -- cgit v1.2.3
- - - - - -
- -
-