diff options
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 95fa9fb1a0..e8f4713b52 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -13,6 +13,7 @@ # # 'foo=value' as 'bootparam_foo=value' # 'foo' as 'bootparam_foo=true' +# 'foo.bar[=value] as 'foo_bar=[value|true]' # Register a function to be called before running a module # The hook is called as: @@ -79,7 +80,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 | sed -e 's/-/_/'` + opt=`echo $opt | tr '.-' '__'` if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then eval "bootparam_${opt}=true" else |