Changeset 3a3ba03 in bootscripts-embedded


Ignore:
Timestamp:
Nov 12, 2013, 3:07:14 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
6394df1
Parents:
e0e7d60
Message:

startup/shutdown: Use /dev/rtc0

The first RTC will be number 0.

Location:
clfs/rc.d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • clfs/rc.d/shutdown

    re0e7d60 r3a3ba03  
    2020done
    2121
    22 if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then
     22if [ -x /sbin/hwclock ] && [ -e /dev/rtc0 ]; then
    2323        echo -n "Syncing system clock to hardware clock: "
    2424        hwclock --systohc --utc
  • clfs/rc.d/startup

    re0e7d60 r3a3ba03  
    2121check_status
    2222
    23 if [ -x /sbin/hwclock ] && [ -e /dev/rtc* ]; then
     23if [ -x /sbin/hwclock ] && [ -e /dev/rtc0 ]; then
    2424        echo -n "Setting system clock: "
    2525        hwclock --hctosys --utc
Note: See TracChangeset for help on using the changeset viewer.