diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-14 12:34:01 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-27 23:30:45 +0100 |
commit | fdac93e78449e5d9503b0754d630f08fb9896dd5 (patch) | |
tree | 1464152e72cbebb188fecd43dd3aa7b133940a2f | |
parent | e68ac6368d8fe654b015f221c9cb179c0c4723e0 (diff) | |
download | barebox-fdac93e78449e5d9503b0754d630f08fb9896dd5.tar.gz barebox-fdac93e78449e5d9503b0754d630f08fb9896dd5.tar.xz |
[ipe337] fixed environment
hush parser has problems with undefined vars
thanks to Enrik Bernkhan for spotting this
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | board/ipe337/env/bin/boot | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/ipe337/env/bin/boot b/board/ipe337/env/bin/boot index ee10b46f3e..20c59b98e0 100644 --- a/board/ipe337/env/bin/boot +++ b/board/ipe337/env/bin/boot @@ -1,19 +1,19 @@ . /env/config -if [ x$1 = "xflash" ]; then +if [ x$1 = xflash ]; then root=flash kernel=flash fi -if [ x$1 = "xnet" ]; then +if [ x$1 = xnet ]; then root=net kernel=net fi -if [ "$root" = flash ]; then +if [ $root = flash ]; then bootargs="$bootargs root=/dev/mtdblock4 rootfstype=jffs2" else - if [ "$ip" = dhcp ]; then + if [ x$ip = xdhcp ]; then bootargs="$bootargs ip=dhcp" else bootargs="$bootargs ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:::" @@ -23,8 +23,8 @@ fi bootargs="$bootargs mtdparts=physmap-flash.0:$mtdparts" -if [ "$kernel" = net ]; then - if [ $ip = dhcp ]; then +if [ $kernel = net ]; then + if [ x$ip = xdhcp ]; then dhcp fi tftp $uimage uImage |