summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/hwclock.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/hwclock.in b/init.d/hwclock.in
index d6bc38a..3bb75a2 100644
--- a/init.d/hwclock.in
+++ b/init.d/hwclock.in
@@ -118,7 +118,7 @@ stop()
if ! yesno $clock_adjfile; then
# Some implementations don't handle adjustments
- if LC_ALL=C hwclock --help | grep -q "\-\-noadjfile"; then
+ if LC_ALL=C hwclock --help 2>&1 | grep -q "\-\-noadjfile"; then
utc_cmd="$utc_cmd --noadjfile"
fi
fi