From 8fed53e4e72230c61f23cb36eda36c228aede1e0 Mon Sep 17 00:00:00 2001 From: Blair Elliott Date: Thu, 17 Jul 2014 16:56:53 -0500 Subject: initscripts: save /etc/timestamp with seconds accuracy Currently, /etc/timestamp is saved with minutes accuracy. To increase the accuracy, modify the save-rtc.sh and bootmisc.sh scripts to save and read /etc/timestamp respectively with seconds accuracy. Signed-off-by: Richard Tollerton Signed-off-by: Ben Shelton Signed-off-by: Richard Purdie --- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index a03b880402..772c3ed993 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -359,7 +359,7 @@ set_image_autologin () { # Can be use to create /etc/timestamp during image construction to give a reasonably # sane default time setting rootfs_update_timestamp () { - date -u +%4Y%2m%2d%2H%2M >${IMAGE_ROOTFS}/etc/timestamp + date -u +%4Y%2m%2d%2H%2M%2S >${IMAGE_ROOTFS}/etc/timestamp } # Prevent X from being started -- cgit v1.2.3