Author: arekm
Date: Thu Jan 27 06:44:19 2011
New Revision: 12088

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Check /dev/rtc or /dev/rtc0 existence.

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit    (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit    Thu Jan 27 06:44:19 2011
@@ -331,7 +331,7 @@
        fi
 
        # Check if timezone definition is available
-       if [ -e /etc/localtime -a -e /dev/rtc ] ; then
+       if [ -e /etc/localtime ] && [ -e /dev/rtc -o -e /dev/rtc0 ] ; then
                if run_cmd "$(nls 'Setting clock')$CLOCKDEF" hwclock 
$CLOCKFLAGS; then
                        show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
                fi
@@ -918,7 +918,7 @@
        fi
 
        # Set the clock if timezone definition wasn't available (eg. /usr not 
mounted)
-       if is_yes "$TIME_SETUP_DELAYED" && [ -e /dev/rtc ]; then
+       if is_yes "$TIME_SETUP_DELAYED" && [ -e /dev/rtc -o -e /dev/rtc0 ]; then
                if run_cmd "$(nls 'Setting clock')$CLOCKDEF" hwclock 
$CLOCKFLAGS; then
                        show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
                fi
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to