mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 18:23:02 +01:00
To avoid reporting errors for /etc/timestamp is not writeable in a readonly system. Reported-by: Niklas Soderlund <niklas.soderlund@external.atlascopco.com> (From OE-Core rev: 463bef8b055f8305b7aac5045fefe4276b1432ad) Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
336 B
Bash
14 lines
336 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: save-rtc
|
|
# Required-Start:
|
|
# Required-Stop: $local_fs hwclock
|
|
# Default-Start: S
|
|
# Default-Stop: 0 6
|
|
# Short-Description: Store system clock into file
|
|
# Description:
|
|
### END INIT INFO
|
|
|
|
# Update the timestamp
|
|
date -u +%4Y%2m%2d%2H%2M%2S 2>/dev/null > /etc/timestamp
|