]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Check /dev/rtc or /dev/rtc0 existence.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 27 Jan 2011 05:44:19 +0000 (05:44 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 27 Jan 2011 05:44:19 +0000 (05:44 +0000)
svn-id: @12088

rc.d/rc.sysinit

index fa164fda6844362f5a049e02fd043cb561d6d51a..79f11c78c2bed8aaa5b2f40fb86f597fe575a040 100755 (executable)
@@ -331,7 +331,7 @@ if ! is_yes "$VSERVER"; then
        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 @@ if ! is_yes "$VSERVER"; then
        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
This page took 0.338643 seconds and 4 git commands to generate.