[oe-commits] [openembedded-core] 03/09: initramfs-framework: Don't use 'tr'

git at git.openembedded.org git at git.openembedded.org
Thu Sep 13 13:17:50 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a57e3e1af0600dc3de858e96e10475b5eba5f34c
Author: Andrew Bresticker <abrestic at waymo.com>
AuthorDate: Wed Sep 12 10:25:26 2018 -0700

    initramfs-framework: Don't use 'tr'
    
    tr is available in busybox, but not in toybox. Just use sed instead.
    
    Signed-off-by: Andrew Bresticker <abrestic at waymo.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 37527a8..3c7e094 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list