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/init13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index c71ce0ce8c..567694aff7 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -88,12 +88,25 @@ fi
88 88
89# populate bootparam environment 89# populate bootparam environment
90for p in `cat /proc/cmdline`; do 90for p in `cat /proc/cmdline`; do
91 if [ -n "$quoted" ]; then
92 value="$value $p"
93 if [ "`echo $p | sed -e 's/\"$//'`" != "$p" ]; then
94 eval "bootparam_${quoted}=${value}"
95 unset quoted
96 fi
97 continue
98 fi
99
91 opt=`echo $p | cut -d'=' -f1` 100 opt=`echo $p | cut -d'=' -f1`
92 opt=`echo $opt | sed -e 'y/.-/__/'` 101 opt=`echo $opt | sed -e 'y/.-/__/'`
93 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then 102 if [ "`echo $p | cut -d'=' -f1`" = "$p" ]; then
94 eval "bootparam_${opt}=true" 103 eval "bootparam_${opt}=true"
95 else 104 else
96 value="`echo $p | cut -d'=' -f2-`" 105 value="`echo $p | cut -d'=' -f2-`"
106 if [ "`echo $value | sed -e 's/^\"//'`" != "$value" ]; then
107 quoted=${opt}
108 continue
109 fi
97 eval "bootparam_${opt}=\"${value}\"" 110 eval "bootparam_${opt}=\"${value}\""
98 fi 111 fi
99done 112done