mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00: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
|
# populate bootparam environment
|
||||||
for p in `cat /proc/cmdline`; do
|
for p in `cat /proc/cmdline`; do
|
||||||
opt=`echo $p | cut -d'=' -f1`
|
opt=`echo $p | cut -d'=' -f1`
|
||||||
opt=`echo $opt | tr '.-' '__'`
|
opt=`echo $opt | sed -e 'y/.-/__/'`
|
||||||
if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then
|
if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then
|
||||||
eval "bootparam_${opt}=true"
|
eval "bootparam_${opt}=true"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user