summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorBjoern Buerger <b.buerger@pengutronix.de>2007-04-10 11:34:19 +0000
committerBjoern Buerger <b.buerger@pengutronix.de>2007-04-10 11:34:19 +0000
commitb7180d11044c28205fc87ee5a08541fdf3035c0b (patch)
treea8bb7fb7478c58591f5a1c888a6679781b03ef8d /generic
parentb0115dd9ff120b6104531badb44970f27c2f5d9e (diff)
downloadptxdist-b7180d11044c28205fc87ee5a08541fdf3035c0b.tar.gz
ptxdist-b7180d11044c28205fc87ee5a08541fdf3035c0b.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7085 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/usr/bin/chrony_command4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/usr/bin/chrony_command b/generic/usr/bin/chrony_command
index ed492935f..03a18d0ae 100755
--- a/generic/usr/bin/chrony_command
+++ b/generic/usr/bin/chrony_command
@@ -5,11 +5,11 @@
# some chronyc commands need prior autentication: extract keys from config
PREFIX="chrony command helper: "
command=$1
-if [ -n "$command" ] ; then
+if [ -z "$command" ] ; then
echo "Usage: $0 <command>"
exit 0
fi
-[ "$command" -eq "--help" ] && command="help"
+[ "$command" = "--help" ] && command="help"
bailout(){
echo "${PREFIX}ERROR --- $*" >&2