diff options
-rw-r--r-- | defaultenv/bin/boot | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot index 788a781159..7497791c0b 100644 --- a/defaultenv/bin/boot +++ b/defaultenv/bin/boot @@ -46,11 +46,14 @@ else fi if [ -n $nor_parts ]; then - mtdparts="${mtdparts}physmap-flash.0:${nor_parts};" + mtdparts="${mtdparts}physmap-flash.0:${nor_parts}" fi if [ -n $nand_parts ]; then - mtdparts="${mtdparts}${nand_device}:${nand_parts};" + if [ -n ${mtdparts} ]; then + mtdparts="${mtdparts};" + fi + mtdparts="${mtdparts}${nand_device}:${nand_parts}" fi if [ -n $mtdparts ]; then |