[Buildroot] [git commit] ntp: fix undefined variable in error print

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Aug 21 13:22:47 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=1b86a60d7aca39c38ddee82daec10b054c258d51
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/ntp/S49ntp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/ntp/S49ntp b/package/ntp/S49ntp
index 6f9ec75..5721f59 100755
--- a/package/ntp/S49ntp
+++ b/package/ntp/S49ntp
@@ -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



More information about the buildroot mailing list