Newer
Older
barebox / defaultenv-2 / base / boot / net
@Sascha Hauer Sascha Hauer on 18 May 2012 361 bytes Add next generation default environment template
#!/bin/sh

if [ "$1" = menu ]; then
	boot-menu-add-entry "$0" "network (tftp, nfs)"
	exit
fi

global.bootm.image="${global.tftp.path}/${global.user}-linux-${global.hostname}"
#global.bootm.oftree="${global.tftp.path}/${global.user}-oftree-${global.hostname}"
nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
bootargs-ip
bootargs-root-nfs -n "$nfsroot"