summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2015-11-23 23:12:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:31:00 +0000
commit463bef8b055f8305b7aac5045fefe4276b1432ad (patch)
tree8411d3786a0f943259039d5221a94e65f1908dcb /meta/recipes-core/initscripts
parent9b1831cf4a2940dca1d23f14dff460ff5a50a520 (diff)
downloadopenembedded-core-contrib-463bef8b055f8305b7aac5045fefe4276b1432ad.tar.gz
openembedded-core-contrib-463bef8b055f8305b7aac5045fefe4276b1432ad.tar.bz2
openembedded-core-contrib-463bef8b055f8305b7aac5045fefe4276b1432ad.zip
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> Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/initscripts')
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh b/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh
index b038fc59d4..1632a5f649 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh
@@ -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