]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
tvheadend: fix undefined variable in error print
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 20 Aug 2014 01:20:47 +0000 (21:20 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 21 Aug 2014 13:23:02 +0000 (15:23 +0200)
The variable "$SCRIPTNAME" is undefined; replace with "$0".

Also, fix "Stopping" spelling.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/tvheadend/S99tvheadend

index c29e32d33366e5b3019d5b6e63d96414b4201453..75b66f37f27c0a8050452bdf55f26bc01348f01b 100644 (file)
@@ -31,7 +31,7 @@ case "$1" in
         fi
         ;;
     stop)
-        printf "Stoping TVHeadend daemon: "
+        printf "Stopping TVHeadend daemon: "
         start-stop-daemon -K -q -p ${PIDFILE} -s TERM
         sleep 2
         if start-stop-daemon -K -q -p ${PIDFILE} -t; then
@@ -46,7 +46,7 @@ case "$1" in
         "${0}" start
         ;;
     *)
-        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+        echo "Usage: $0 {start|stop|restart|force-reload}" >&2
         exit 1
         ;;
 esac