diff options
author | Tom Gundersen <teg@jklm.no> | 2011-03-30 17:27:24 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-03-30 17:27:24 +0200 |
commit | 9ddc3214babae7110ca80dad12d6b0d74d75defd (patch) | |
tree | 5f0614be21d3ab445a46716aa53550b61fc7b646 /rc.sysinit | |
parent | 32272781b1d49496bcc5b6ce4394192e0f7306a3 (diff) | |
parent | 5bf3735ba6b03c3ec754e713174a5964f8a0151a (diff) |
Merge branch 'hwclock-from-kurt' into arch-master
Conflicts:
rc.shutdown
rc.sysinit
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 27 |
1 files changed, 3 insertions, 24 deletions
@@ -66,7 +66,7 @@ if [[ $HWCLOCK_PARAMS ]]; then # configured timezone. Any new timezone put in rc.conf is copied over at # a later time. # This does *NOT* take into account a time adjustment file as /var may not be - # mounted yet. A second set occurs later to match rc.conf. + # mounted yet. A second set may occur in rc.d/hwclock to match rc.conf. if [[ -f /etc/localtime ]]; then /sbin/hwclock $HWCLOCK_PARAMS --noadjfile fi @@ -304,28 +304,12 @@ status "Retrying failed UDev events" /sbin/udevadm trigger --action=add --type=f status "Activating Swap" /sbin/swapon -a -stat_busy "Configuring System Clock" if [[ $TIMEZONE && -e /usr/share/zoneinfo/$TIMEZONE ]]; then /bin/rm -f /etc/localtime - /bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime + status "Configuring Time Zone" \ + /bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime fi -clock_pid="" -if [[ $HWCLOCK_PARAMS ]]; then - # This time, we set the clock for real. Use the adjustment file now that - # /var will definitely be available, and then set the system clock once - # the hardware clock has been adjusted accordingly. The backgrounding magic - # is due to the fact that the second call to hwclock will almost always - # take ~1 second because of the clock granularity, and we might as well - # stay busy. - ( - /sbin/hwclock --adjust - /sbin/hwclock $HWCLOCK_PARAMS - ) & - clock_pid=$! -fi -stat_done - RANDOM_SEED=/var/lib/misc/random-seed if [[ -f $RANDOM_SEED ]]; then stat_busy "Initializing Random Seed" @@ -395,11 +379,6 @@ set_consolefont /bin/dmesg >| /var/log/dmesg.log -# final hwclock setting needs to be done at this point -if [[ $clock_pid ]]; then - wait $clock_pid -fi - run_hook sysinit_end # End of file |