#!/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
