aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/util-linux.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/util-linux.xml')
-rw-r--r--chapter06/util-linux.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml
index 2286e302b..49b8d118b 100644
--- a/chapter06/util-linux.xml
+++ b/chapter06/util-linux.xml
@@ -43,8 +43,8 @@
<command>hwclock</command> program FHS-compliant, run the
following:</para>
-<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
- hwclock/hwclock.c
+<screen><userinput>sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
+ -i $(grep -rl '/etc/adjtime' .)
mkdir -pv /var/lib/hwclock</userinput></screen>
</sect2>