Skip to contentSkip to conversation

ntp: fix undefined variable in error print

PATCH New Danomi Manchego 3 participants 4 messages Aug 20, 2014 – Aug 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ntp: fix undefined variable in error print

The variable "$SCRIPTNAME" is undefined; replace with "$0".

---
 package/ntp/S49ntp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ntp/S49ntp +1 -1
index 6f9ec75..5721f59 100755
@@ -36,7 +36,7 @@ case "$1" in
 	sleep 1
 	$0 start
 	;;
-  *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+  *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
 	exit 1
 	;;
 esac
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 tvheadend: fix undefined variable in error print

The variable "$SCRIPTNAME" is undefined; replace with "$0".

Also, fix "Stopping" spelling.

---
 package/tvheadend/S99tvheadend |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/tvheadend/S99tvheadend +2 -2
index c29e32d..75b66f3 100644
@@ -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
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 tvheadend: fix undefined variable in error print

Danomi, All,

On 2014-08-19 21:20 -0400, Danomi Manchego spake thusly:

Quoted 5 lines

The variable "$SCRIPTNAME" is undefined; replace with "$0".

Also, fix "Stopping" spelling.

Regards,
Yann E. MORIN.

Quoted 33 lines
---
 package/tvheadend/S99tvheadend |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/tvheadend/S99tvheadend +2 -2
index c29e32d..75b66f3 100644
@@ -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
Signature · 6 lines
1.7.9.5

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/2 ntp: fix undefined variable in error print

In reply to Danomi Manchego

Dear Danomi Manchego,

Quoted 6 lines · Danomi Manchego

The variable "$SCRIPTNAME" is undefined; replace with "$0".

---
 package/ntp/S49ntp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This patch, and the similar patch for tvheadend, applied.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com