]> code.ossystems Code Review - openembedded-core.git/commitdiff
initramfs-framework: Don't use 'tr'
authorAndrew Bresticker <abrestic@waymo.com>
Wed, 12 Sep 2018 17:25:26 +0000 (10:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Sep 2018 15:28:26 +0000 (16:28 +0100)
tr is available in busybox, but not in toybox. Just use sed instead.

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/init

index 37527a840afaea6e4f507cea40b5127615d08564..3c7e09422de2230d46a0f1e29a32b6fe22ac1656 100755 (executable)
@@ -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