mirror of
https://git.yoctoproject.org/poky
synced 2026-04-09 20:02:21 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c84266ec35
commit
6c1ed635df
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user