[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>
This commit is contained in:
parent
e68ac6368d
commit
fdac93e784
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue