initscripts: hide the error in case system is not writeable
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>
This commit is contained in:
parent
4ed84ffe0d
commit
2ba954fcb2
|
@ -10,4 +10,4 @@
|
|||
### END INIT INFO
|
||||
|
||||
# Update the timestamp
|
||||
date -u +%4Y%2m%2d%2H%2M%2S > /etc/timestamp
|
||||
date -u +%4Y%2m%2d%2H%2M%2S 2>/dev/null > /etc/timestamp
|
||||
|
|
Loading…
Reference in New Issue