initramfs-framework: Don't use 'tr'
PATCH 1/1 initramfs-framework: Don't use 'tr'
tr is available in busybox, but not in toybox. Just use sed instead.
Signed-off-by Andrew Bresticker <[email protected]>
--- meta/recipes-core/initrdscripts/initramfs-framework/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initrdscripts/initramfs-framework/init +1 -1
@@ -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
Signature · 1 line
2.19.0.rc2.392.g5ba43deb5a-goog