mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
toybox-inittab: Fix serial getty reproducibility
The enable_getty test uses a bash-only syntax "[[ ... ]]". On /bin/sh==bash hosts, it enables the serial getty. On /bin/sh!=bash hosts, it does not enable it. Fix this non-reproducibility by using the standard shell "[ ... ]" syntax which should work in any POSIX shell[0]. [0]: https://www.shellcheck.net/wiki/SC3010 Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
6757155f09
commit
e317b01690
@ -34,7 +34,7 @@ do_configure() {
|
||||
cp orig/* .
|
||||
|
||||
for config in ${PACKAGECONFIG_CONFARGS}; do
|
||||
if [[ ${config} == "enable_getty" ]]; then
|
||||
if [ "${config}" = "enable_getty" ]; then
|
||||
echo "# generated by bitbake recipe ${PN}" >> ${S}/inittab
|
||||
for console in "${SERIAL_CONSOLES}"; do
|
||||
param=$(echo ${console} | sed s/\;/\ /g)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user