#1984: hwclock man page is incorrect
--------------------+-------------------------------------------------------
 Reporter:  Spinal  |       Owner:  [email protected]
     Type:  task    |      Status:  new                          
 Priority:  normal  |   Milestone:  6.3                          
Component:  Book    |     Version:  SVN                          
 Severity:  normal  |    Keywords:                               
--------------------+-------------------------------------------------------
 As we know /etc/adjtime is changed to /var/lib/hwclock/adjtime in the
 util-linux sources.[[BR]]

 But there's still man page of hwclock remain with no changes.[[BR]]

 So I suppose it's better to change the instruction
 {{{
 sed -i '[EMAIL PROTECTED]/[EMAIL PROTECTED]/lib/hwclock/[EMAIL PROTECTED]' \
     hwclock/hwclock.c
 }}}
 to
 {{{
 sed -e '[EMAIL PROTECTED]/[EMAIL PROTECTED]/lib/hwclock/[EMAIL PROTECTED]' -i 
$(grep -rl
 '/etc/adjtime' .)
 }}}

 And I think it's a good idea to add this instruction to '''setclock'''
 bootscript:[[BR]]

 '''hwclock --adjust'''[[BR]]

 Just like this:
 {{{
         start)
                 boot_mesg "Setting system clock..."
                 hwclock --adjust &>/dev/null
                 hwclock --hctosys ${CLOCKPARAMS} &>/dev/null
                 evaluate_retval
                 ;;
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1984>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to