Load rtc-cmos if needed, Gentoo #235647 thanks to Robin Johnson.
This commit is contained in:
parent
c3e192a834
commit
abe94bec6f
@ -74,8 +74,12 @@ start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
ebegin "Setting system clock using the hardware clock [${utc}]"
|
ebegin "Setting system clock using the hardware clock [${utc}]"
|
||||||
if [ -e /proc/modules -a ! -e /dev/rtc ]; then
|
local rtc=
|
||||||
modprobe -q rtc || modprobe -q genrtc
|
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
|
fi
|
||||||
|
|
||||||
if [ -e /etc/adjtime ] && yesno ${clock_adjfile}; then
|
if [ -e /etc/adjtime ] && yesno ${clock_adjfile}; then
|
||||||
|
Loading…
Reference in New Issue
Block a user