summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-daemons/tftp-hpa/files/init13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/init b/meta-networking/recipes-daemons/tftp-hpa/files/init
index 5ad8c52cb8..9e1843635c 100644
--- a/meta-networking/recipes-daemons/tftp-hpa/files/init
+++ b/meta-networking/recipes-daemons/tftp-hpa/files/init
@@ -18,20 +18,21 @@ set -e
18 18
19PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 19PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
20DESC="HPA's tftpd" 20DESC="HPA's tftpd"
21NAME=in.tftpd 21NAME=in.tftpd-hpa
22DAEMON=/usr/sbin/$NAME
23PIDFILE=/var/run/$NAME.pid
24SCRIPTNAME=/etc/init.d/tftpd-hpa 22SCRIPTNAME=/etc/init.d/tftpd-hpa
25 23
26# Gracefully exit if the package has been removed.
27test -x $DAEMON || exit 0
28
29# Read config file if it is present. 24# Read config file if it is present.
30if [ -r /etc/default/tftpd-hpa ] 25if [ -r /etc/default/tftpd-hpa ]
31then 26then
32 . /etc/default/tftpd-hpa 27 . /etc/default/tftpd-hpa
33fi 28fi
34 29
30DAEMON=/usr/sbin/$NAME
31PIDFILE=/var/run/$NAME.pid
32
33# Gracefully exit if the package has been removed.
34test -x $DAEMON || exit 0
35
35if [ "$RUN_DAEMON" != "yes" ] ; then 36if [ "$RUN_DAEMON" != "yes" ] ; then
36 echo "tftpd-hpa disabled in /etc/default/tftpd-hpa" 37 echo "tftpd-hpa disabled in /etc/default/tftpd-hpa"
37 exit 0 38 exit 0