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 17:38:07 +0100 |
commit | 6c1ed635dfddbec565b9328b9bcf462eea61a558 (patch) | |
tree | 886c6e9c4f3c754d2d35ae3e3759dfcc8d6f0263 /meta/recipes-core/initrdscripts | |
parent | c84266ec35e5e7b577bb4d6a254b31d9078f10ef (diff) | |
download | poky-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/recipes-core/initrdscripts')
-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 | |||
84 | # populate bootparam environment | 84 | # populate bootparam environment |
85 | for p in `cat /proc/cmdline`; do | 85 | for 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 |