From: Ladislav Michl <la...@linux-mips.org>

Correct switching partitions after upgrade and make it more readable.

Signed-off-by: Ladislav Michl <la...@linux-mips.org>
---
 include/configs/netstar.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/netstar.h b/include/configs/netstar.h
index 884dc09..d4465d6 100644
--- a/include/configs/netstar.h
+++ b/include/configs/netstar.h
@@ -156,7 +156,6 @@
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_RUN
 
-
 /*
  * BOOTP options
  */
@@ -176,14 +175,15 @@
 #define        CONFIG_EXTRA_ENV_SETTINGS                                       
        \
        "autostart=yes\0"                                                       
\
        "ospart=0\0"                                                            
\
-       "setup=setenv bootargs console=ttyS0,$baudrate "                        
\
-               "$mtdparts\0"                                                   
\
+       "setup=setenv bootargs console=ttyS0,$baudrate $mtdparts\0"             
\
        "setpart="                                                              
\
        "if test -n $swapos; then "                                             
\
                "setenv swapos; saveenv; "                                      
\
-       "else "                                                                 
\
-               "if test $ospart -eq 0; then setenv ospart 1;"                  
\
-                       "else setenv ospart 0;          fi; "                   
\
+               "if test $ospart -eq 0; then "                                  
\
+                       "setenv ospart 1; "                                     
\
+               "else "                                                         
\
+                       "setenv ospart 0; "                                     
\
+               "fi; "                                                          
\
        "fi\0"                                                                  
\
        "nfsargs=setenv bootargs $bootargs "                                    
\
                "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off "      
\
-- 
1.5.3.8

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to