[OE-core] [PATCH v1] initscripts: do not save timestamp for readonly system

Ming Liu liu.ming50 at gmail.com
Mon Nov 23 21:43:36 UTC 2015



On 11/23/2015 10:18 PM, Burton, Ross wrote:
>
> On 23 November 2015 at 09:42, Ming Liu <liu.ming50 at gmail.com 
> <mailto:liu.ming50 at gmail.com>> wrote:
>
>     +[ -w /etc/timestamp ] && date -u +%4Y%2m%2d%2H%2M%2S > /etc/timestamp
>
>
> This would fail if /etc/timestamp doesn't already exist.  I'm tempted 
> to say you should just 2>/dev/null so it tries and the error is hidden 
> in case /etc/timestamp is deleted on a writable file system.
Yes, that is true! I did not consider that case, then I will send a V2 soon.

//Ming Liu
>
> Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151123/166295eb/attachment-0002.html>


More information about the Openembedded-core mailing list