mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
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. (From OE-Core rev: 8fed53e4e72230c61f23cb36eda36c228aede1e0) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b573ae8011
commit
00017b4dd8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user