Skip to contentSkip to conversation

initscripts: hide the error in case system is not writeable

PATCH New Ming Liu 1 participant 1 message Nov 23, 2015

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

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.

---
 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
index b038fc5..1632a5f 100644
@@ -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