summaryrefslogtreecommitdiff
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 16:28:26 +0100
commit518cca6711f737f44ff74a5ac1308de8c9b49e78 (patch)
treedce413dbac9f2853087f65267ec3dc985e32dfc3 /meta
parent79a19811f4039c5d1861094abbbdaea0aedeee04 (diff)
downloadopenembedded-core-518cca6711f737f44ff74a5ac1308de8c9b49e78.tar.gz
openembedded-core-518cca6711f737f44ff74a5ac1308de8c9b49e78.tar.bz2
openembedded-core-518cca6711f737f44ff74a5ac1308de8c9b49e78.zip
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@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
# 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