aboutsummaryrefslogtreecommitdiff
path: root/package/tftpd
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2005-04-21 17:36:04 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2005-04-21 17:36:04 +0000
commit07064c0978b78356bf74408c216f524881df3362 (patch)
treed245a8d3ae74ffbf9beefa6eab00c163dfe82674 /package/tftpd
parent74ad4e12c8182e70ec0eed7e029f6d70163a6a01 (diff)
downloadbuildroot-07064c0978b78356bf74408c216f524881df3362.tar.gz
buildroot-07064c0978b78356bf74408c216f524881df3362.tar.bz2
Update init scripts a bit. Don't mess with /etc/default for now.
Diffstat (limited to 'package/tftpd')
-rw-r--r--package/tftpd/default-tftpd3
-rwxr-xr-xpackage/tftpd/init-tftpd22
2 files changed, 14 insertions, 11 deletions
diff --git a/package/tftpd/default-tftpd b/package/tftpd/default-tftpd
deleted file mode 100644
index 1dce7fdfeb..0000000000
--- a/package/tftpd/default-tftpd
+++ /dev/null
@@ -1,3 +0,0 @@
-#Defaults for tftpd-hpa
-RUN_DAEMON="yes"
-OPTIONS="-l -s /var/lib/tftpboot"
diff --git a/package/tftpd/init-tftpd b/package/tftpd/init-tftpd
index e273c11961..7f01462315 100755
--- a/package/tftpd/init-tftpd
+++ b/package/tftpd/init-tftpd
@@ -3,6 +3,17 @@
# Author: Jaakko Niemi <liiwi@iki.fi>
# Modified from skeleton file in sarge
+
+
+
+
+#Defaults for tftpd-hpa
+RUN_DAEMON="yes"
+OPTIONS="-l -s /var/lib/tftpboot"
+
+
+
+
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@@ -10,19 +21,14 @@ DESC="HPA's tftpd"
NAME=in.tftpd
DAEMON=/usr/sbin/$NAME
PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/tftpd-hpa
+SCRIPTNAME=/etc/init.d/S80tftpd-hpa
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
-# Read config file if it is present.
-if [ -r /etc/default/tftpd-hpa ]
-then
- . /etc/default/tftpd-hpa
-fi
-if [ "$RUN_DAEMON" = "yes" ] ; then
- echo "tftpd-hpa disabled in /etc/default/tftpd-hpa"
+if [ "$RUN_DAEMON" != "yes" ] ; then
+ echo "tftpd-hpa disabled in /etc/init.d/S80tftpd-hpa"
exit 0
fi