summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91sam9m10ihd/env/boot/net-usb
blob: 6e341a011488ea217566361fccbea985be39d73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

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

usb -f
ethact eth1

if [ $? -ne 0 ]; then
	echo "ERROR: usb ethernet not found"
	exit 1
fi

path="/mnt/tftp"

global.bootm.image="${path}/${global.user}-linux-${global.hostname}"
#global.bootm.oftree="${path}/${global.user}-oftree-${global.hostname}"
nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
bootargs-ip
global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,v3,tcp"