Add routeup and tlsdated.

The routeup(1) helper program listens for new IP routes and emits output on
stdout when a new route appears. The tlsdated(1) program runs tlsdate(1) as
appropriate to maintain an accurate system clock; it tries once when the system
comes up, then tries repeatedly whenever a new route appears until it succeeeds.
After succeeding, tlsdated falls back to running tlsdate once a day to
compensate for gradual clock drift. We also keep the rtc synchronized whenever
we run tlsdate.

BUG=chromium-os:29573
TEST=adhoc,platform_TLSDate,unit

Change-Id: I4ecef2ca958d9195f19bb0d099802dde0fb410d9
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32959
Reviewed-by: Will Drewry <wad@chromium.org>
8 files changed