]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
initscripts: fix bashism in bootmisc.sh
authorBen Shelton <ben.shelton@ni.com>
Wed, 23 Jul 2014 16:22:44 +0000 (11:22 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Jul 2014 20:59:17 +0000 (21:59 +0100)
commit7c11b327a1cf116ccfd3df05e84845dbcb3d3fd8
tree42e05556a39ba9661482a1ec1ae99a477782e8f4
parent0cc5fa580d35b9740d16ba6cc76fd02c6b434d2a
initscripts: fix bashism in bootmisc.sh

In the commit 'initscripts: save /etc/timestamp with seconds accuracy',
a bashism was introduced in the bootmisc.sh script in the code to set
the current date from the stored value in /etc/timestamp.  This causes
that operation to fail with the following message when /bin/sh is not
bash:

/etc/init.d/rc: /etc/rcS.d/S55bootmisc.sh: line 73: syntax error: bad substitution

Fixed by using pattern matching removal rather than bash-specific
substring expansion.

[YOCTO #6566]

(From OE-Core rev: c8a451adc71e4ce9ab963f61d7830c2d75aaffca)

Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh