3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- tmdns/init.d/initscript~busybox-init.d
7 +++ tmdns/init.d/initscript
11 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
12 -DAEMON=/usr/local/sbin/tmdns
13 +DAEMON=`which tmdns 2>/dev/null`
15 DESC="tmdns multicast DNS responder version 0.1"
17 -test -f $DAEMON || exit 0
18 +test -n "$DAEMON" || exit 0
24 echo -n "Starting $DESC: "
25 - start-stop-daemon --start --quiet --pidfile /var/run/tmdns.pid \
27 + start-stop-daemon -S -x $DAEMON
32 echo -n "Stopping $DESC: "
33 - start-stop-daemon --stop --quiet --pidfile /var/run/tmdns.pid \
35 + start-stop-daemon -X -x $DAEMON
36 rm -f /var/run/tmdns.pid
41 echo "Reloading $DESC configuration files."
42 - start-stop-daemon --stop --signal 1 --quiet --pidfile \
43 - /var/run/tmdns.pid --exec $DAEMON
44 + start-stop-daemon -X -s 1 -x $DAEMON
49 # just the same as "restart".
51 echo -n "Restarting $DESC: "
52 - start-stop-daemon --stop --quiet --pidfile \
53 - /var/run/$NAME.pid --exec $DAEMON
54 + start-stop-daemon -X -x $DAEMON
56 - start-stop-daemon --start --quiet --pidfile \
57 - /var/run/$NAME.pid --exec $DAEMON
58 + start-stop-daemon -S -x $DAEMON