blob: 2d4486caf82740aa328f281e9f32428b1e015680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# pass either static ip or dhcp to kernel based on barebox settings
. /env/network/eth0
if [ $ip = dhcp ]; then
global.linux.bootargs.dyn.ip="ip=dhcp"
else
global.linux.bootargs.dyn.ip="ip=$ipaddr:$serverip:$gateway:$netmask::eth0:"
fi
|