Load rtc-cmos if needed, Gentoo #235647 thanks to Robin Johnson.

This commit is contained in:
Roy Marples 2008-09-27 06:48:21 +00:00
parent c3e192a834
commit abe94bec6f

View File

@ -74,8 +74,12 @@ start()
fi
ebegin "Setting system clock using the hardware clock [${utc}]"
if [ -e /proc/modules -a ! -e /dev/rtc ]; then
modprobe -q rtc || modprobe -q genrtc
local rtc=
for rtc in /dev/rtc /dev/rtc[0-9]*; do
[ -e "${rtc}" ] && break
done
if [ ! -e "${rtc}" -a -e /proc/modules ]; then
modprobe -q rtc-cmos || modprobe -q rtc || modprobe -q genrtc
fi
if [ -e /etc/adjtime ] && yesno ${clock_adjfile}; then