initscripts: hide the error in case system is not writeable
PATCH v2 1/1 initscripts: hide the error in case system is not writeable
From: Ming Liu <[email protected]>
To avoid reporting errors for /etc/timestamp is not writeable in a readonly system.
Reported-by Niklas Soderlund <[email protected]>
Signed-off-by Ming Liu <[email protected]>
--- meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh +1 -1
@@ -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
Signature · 1 line
1.9.1