ntp: fix undefined variable in error print
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 20 Aug 2014 01:20:46 +0000 (21:20 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 21 Aug 2014 13:22:47 +0000 (15:22 +0200)
The variable "$SCRIPTNAME" is undefined; replace with "$0".

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ntp/S49ntp

index 6f9ec75045b1dbd6facde8fafca697bfbe70b451..5721f5948fe81bc5e41c842fe664d9fda052a314 100755 (executable)
@@ -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