summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/initramfs-framework/init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/init')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init3
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 @@
13# 13#
14# 'foo=value' as 'bootparam_foo=value' 14# 'foo=value' as 'bootparam_foo=value'
15# 'foo' as 'bootparam_foo=true' 15# 'foo' as 'bootparam_foo=true'
16# 'foo.bar[=value] as 'foo_bar=[value|true]'
16 17
17# Register a function to be called before running a module 18# Register a function to be called before running a module
18# The hook is called as: 19# The hook is called as:
@@ -79,7 +80,7 @@ mount -t sysfs sysfs /sys
79# populate bootparam environment 80# populate bootparam environment
80for p in `cat /proc/cmdline`; do 81for p in `cat /proc/cmdline`; do
81 opt=`echo $p | cut -d'=' -f1` 82 opt=`echo $p | cut -d'=' -f1`
82 opt=`echo $opt | sed -e 's/-/_/'` 83 opt=`echo $opt | tr '.-' '__'`
83 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then 84 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then
84 eval "bootparam_${opt}=true" 85 eval "bootparam_${opt}=true"
85 else 86 else