From: Danomi Manchego Date: Wed, 20 Aug 2014 01:20:47 +0000 (-0400) Subject: tvheadend: fix undefined variable in error print X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54007178336031fabe0033b5eb8303a8fe3b42bb;p=buildroot.git tvheadend: fix undefined variable in error print The variable "$SCRIPTNAME" is undefined; replace with "$0". Also, fix "Stopping" spelling. Signed-off-by: Danomi Manchego Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/package/tvheadend/S99tvheadend b/package/tvheadend/S99tvheadend index c29e32d333..75b66f37f2 100644 --- a/package/tvheadend/S99tvheadend +++ b/package/tvheadend/S99tvheadend @@ -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