From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ladislav Michl Date: Thu, 28 Jan 2010 00:21:52 +0100 Subject: [U-Boot] [PATCH 4/5] NetStar: fix default environment In-Reply-To: <20100127231620.GA18557@localhost.localdomain> References: <20100127231620.GA18557@localhost.localdomain> Message-ID: <20100127232152.GE18557@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Ladislav Michl Correct switching partitions after upgrade and make it more readable. Signed-off-by: Ladislav Michl --- 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