summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2015-11-23 22:12:38 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:10 (GMT)
commit2ba954fcb22b63b4881e1f8e38d15efdc38b4fd4 (patch)
treec2ac028aaaeec6b0c6ce9a969d4c0894e246b4b9
parent4ed84ffe0d4bb097258ffb5bf636509cf37a510c (diff)
downloadpoky-contrib-2ba954fcb22b63b4881e1f8e38d15efdc38b4fd4.zip
poky-contrib-2ba954fcb22b63b4881e1f8e38d15efdc38b4fd4.tar.gz
poky-contrib-2ba954fcb22b63b4881e1f8e38d15efdc38b4fd4.tar.bz2
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>
-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 b038fc5..1632a5f 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