diff options
author | Danomi Manchego <danomimanchego123@gmail.com> | 2014-08-19 21:20:47 -0400 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-08-21 15:23:02 +0200 |
commit | 54007178336031fabe0033b5eb8303a8fe3b42bb (patch) | |
tree | 376c0461e594ecd04175ebf1f98c42ec358cb5b2 | |
parent | 1b86a60d7aca39c38ddee82daec10b054c258d51 (diff) | |
download | buildroot-54007178336031fabe0033b5eb8303a8fe3b42bb.tar.gz buildroot-54007178336031fabe0033b5eb8303a8fe3b42bb.zip |
tvheadend: fix undefined variable in error print
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>
-rw-r--r-- | package/tvheadend/S99tvheadend | 4 |
1 files changed, 2 insertions, 2 deletions
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 |