[Buildroot] [PATCH 1/2] ntp: fix undefined variable in error print
Danomi Manchego
danomimanchego123 at gmail.com
Wed Aug 20 01:20:46 UTC 2014
The variable "$SCRIPTNAME" is undefined; replace with "$0".
Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>
---
package/ntp/S49ntp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.7.9.5
More information about the buildroot
mailing list