readclock: code clean-up, add -q, manpage updates

- Simplify the message passing between readclock and the driver.

 - Add a -q command line option to suppress warning messages. This
 cuts down on the noise when readclock is called early in the boot
 sequence and a secondary RTC driver (ex TPS95650) isn't up yet.

 - Update the man page to be less i386 centric and add details about
 the new -q option.

Change-Id: If8d7c50a217ca98c1e9fae0ca92521e2e7c893e4
This commit is contained in:
Thomas Cort
2013-08-07 20:06:47 -04:00
committed by Gerrit Code Review
parent bab2a34e1b
commit 7f98bdf040
3 changed files with 43 additions and 67 deletions

2
etc/rc
View File

@@ -126,7 +126,7 @@ start)
# Start real time clock driver & set system time, otherwise default date.
up readclock.drv
readclock || date 201301010000
readclock -q || date 201301010000
# Initialize files.
>/etc/utmp # /etc/utmp keeps track of logins