diff options
| -rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 13 |
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 |
| 90 | for p in `cat /proc/cmdline`; do | 90 | for 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 |
| 99 | done | 112 | done |
