|
|

楼主 |
发表于 2008-10-20 08:44:57
|
显示全部楼层
谢谢各位帮助!
TO:zhllg 刚才看了一下,好像没用openrc,应该还是clock起作用吧
TO:arli
我的RTC本来就是以模块形式编译的,刚才把rtc去掉重新编译了一下模块看看效果如何...
顺便读了一下clock
if [[ ${fakeit} -ne 1 && -e /proc/modules && ! -e /dev/rtc ]] ; then
modprobe rtc &> /dev/null || modprobe genrtc &> /dev/null
fi
ebegin "Setting system clock using the hardware clock [${TBLURB}]"
if [[ ${fakeit} -eq 1 ]] ; then
ret=0
elif [[ -x /sbin/hwclock ]] ; then
# Since hwclock always exit's with a 0, need to check its output
.
errstr=$(/sbin/hwclock ${myadj} ${myopts} 2>&1 >/dev/null)
errstr="${errstr}$(/sbin/hwclock --hctosys ${myopts} 2>&1 >/dev/null)"
if [[ -n ${errstr} ]] ; then
ewarn "${errstr}"
ret=1
else
ret=0
fi
看不太明白,感觉问题似乎是出在运行hwclock时...
先reboot一下看看吧。
再次谢谢各位~ |
|