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:
Ming Liu 2015-11-23 23:12:38 +01:00 committed by Richard Purdie
parent 4ed84ffe0d
commit 2ba954fcb2
1 changed files with 1 additions and 1 deletions

View File

@ -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