[OE-core] [PATCH v1] initscripts: do not save timestamp for readonly system
Burton, Ross
ross.burton at intel.com
Mon Nov 23 21:18:23 UTC 2015
On 23 November 2015 at 09:42, Ming Liu <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.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151123/330a7c45/attachment-0002.html>
More information about the Openembedded-core
mailing list