diff options
author | Andrew Bresticker <abrestic@waymo.com> | 2018-09-12 10:25:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-13 16:28:26 +0100 |
commit | 518cca6711f737f44ff74a5ac1308de8c9b49e78 (patch) | |
tree | dce413dbac9f2853087f65267ec3dc985e32dfc3 /meta | |
parent | 79a19811f4039c5d1861094abbbdaea0aedeee04 (diff) | |
download | openembedded-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-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 2 |
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 |