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, 1 insertions, 3 deletions
diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml
index 64658f402..fbd42374a 100644
--- a/chapter06/util-linux.xml
+++ b/chapter06/util-linux.xml
@@ -35,9 +35,7 @@ instead of the usual <filename>/etc</filename>, as the location for the
<filename>adjtime</filename> file. To make the <command>hwclock</command>
program FHS-compliant, run the following:</para>
-<screen><userinput>cp hwclock/hwclock.c{,.backup}
-sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
- hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
+<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c
mkdir -p /var/lib/hwclock</userinput></screen>
</sect2>