SVN: rc-scripts/trunk/rc.d/rc.sysinit
arekm
arekm at pld-linux.org
Mon Feb 5 19:54:12 CET 2007
Author: arekm
Date: Mon Feb 5 19:54:12 2007
New Revision: 8223
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
Delay (or even skip) clock setting if /dev/rtc doesn't exist.
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Mon Feb 5 19:54:12 2007
@@ -218,7 +218,7 @@
fi
# Check if timezone definition is available
- if [ -e /etc/localtime ] ; then
+ if [ -e /etc/localtime -a -e /dev/rtc ] ; then
if run_cmd "$(nls 'Setting clock')$CLOCKDEF" /sbin/hwclock $CLOCKFLAGS; then
show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
fi
@@ -788,7 +788,7 @@
fi
# Set the clock if timezone definition wasn't available (eg. /usr not mounted)
- if is_yes "$TIME_SETUP_DELAYED"; then
+ if is_yes "$TIME_SETUP_DELAYED" && [ -e /dev/rtc ]; then
if run_cmd "$(nls 'Setting clock')$CLOCKDEF" /sbin/hwclock $CLOCKFLAGS; then
show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
fi
More information about the pld-cvs-commit
mailing list