]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
rcS: Sync up time and write it to RTC.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 16 Mar 2012 17:03:14 +0000 (13:03 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 16 Mar 2012 17:03:14 +0000 (13:03 -0400)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/etc/init.d/rcS

index dab3cfadf627635864fdf4011a8b630970043e81..31173a3031629622869ab99bffcaf3807dadbbde 100755 (executable)
@@ -123,6 +123,10 @@ if [ -x /init.late ]; then
        /init.late
 fi
 
+ntpdate time.apple.com
+hwclock -w
+date
+
 TEST=$(boot_parameter 'test')
 if [ $? == 0 ]; then
        echo "Starting $TEST testcase.."