defaultenv: boot: add eth0 to ip configuration
When passing a fixed IP to the kernel set it explicit to eth0. Otherwise on systems with more than one interface dhcp might be used. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3d7b2edb0c
commit
bd6d6adfc0
|
@ -25,7 +25,7 @@ if [ x$ip = xdhcp ]; then
|
|||
elif [ x$ip = xnone ]; then
|
||||
bootargs="$bootargs ip=none"
|
||||
else
|
||||
bootargs="$bootargs ip=$eth0.ipaddr::$eth0.gateway:$eth0.netmask:::"
|
||||
bootargs="$bootargs ip=$eth0.ipaddr::$eth0.gateway:$eth0.netmask::eth0:"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue