summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@waymo.com>2018-09-12 10:25:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 17:38:07 +0100
commit6c1ed635dfddbec565b9328b9bcf462eea61a558 (patch)
tree886c6e9c4f3c754d2d35ae3e3759dfcc8d6f0263 /meta
parentc84266ec35e5e7b577bb4d6a254b31d9078f10ef (diff)
downloadpoky-6c1ed635dfddbec565b9328b9bcf462eea61a558.tar.gz
initramfs-framework: Don't use 'tr'
tr is available in busybox, but not in toybox. Just use sed instead. (From OE-Core rev: 518cca6711f737f44ff74a5ac1308de8c9b49e78) Signed-off-by: Andrew Bresticker <abrestic@waymo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 37527a840a..3c7e09422d 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
84# populate bootparam environment 84# populate bootparam environment
85for p in `cat /proc/cmdline`; do 85for p in `cat /proc/cmdline`; do
86 opt=`echo $p | cut -d'=' -f1` 86 opt=`echo $p | cut -d'=' -f1`
87 opt=`echo $opt | tr '.-' '__'` 87 opt=`echo $opt | sed -e 'y/.-/__/'`
88 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then 88 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then
89 eval "bootparam_${opt}=true" 89 eval "bootparam_${opt}=true"
90 else 90 else