From: Andrew Bresticker Date: Wed, 12 Sep 2018 17:25:26 +0000 (-0700) Subject: initramfs-framework: Don't use 'tr' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~16657 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=518cca6711f737f44ff74a5ac1308de8c9b49e78;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git initramfs-framework: Don't use 'tr' tr is available in busybox, but not in toybox. Just use sed instead. Signed-off-by: Andrew Bresticker Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 37527a840af..3c7e09422de 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -84,7 +84,7 @@ mount -t sysfs sysfs /sys # populate bootparam environment for p in `cat /proc/cmdline`; do opt=`echo $p | cut -d'=' -f1` - opt=`echo $opt | tr '.-' '__'` + opt=`echo $opt | sed -e 'y/.-/__/'` if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then eval "bootparam_${opt}=true" else