blob: 15041c6359aec08033b65e7e58936043facf1f76 (
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.ip="ip=dhcp"
else
global.linux.bootargs.ip="ip=$ipaddr:$serverip:$gateway:$netmask::eth0:"
fi
|