aboutsummaryrefslogtreecommitdiff
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 c4c62e62..aa765cce 100644
--- a/init.d/hwclock.in
+++ b/init.d/hwclock.in
@@ -72,7 +72,7 @@ get_noadjfile()
{
if ! yesno $clock_adjfile; then
# Some implementations don't handle adjustments
- if LC_ALL=C hwclock --help 2>&1 | grep -q "\-\-noadjfile"; then
+ if LC_ALL=C hwclock --help 2>&1 | grep -q -e "--noadjfile"; then
echo --noadjfile
fi
fi