summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/net
blob: 4090c2f4a9aec81d7ed92dacc2901ebcec68f7eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

path="/mnt/tftp"

# clear seat network config
global.linux.bootargs.rdu_network=

global.bootm.image="${path}/${global.user}-linux-${global.hostname}"

oftree="${path}/${global.user}-oftree-${global.hostname}"
if [ -f "${oftree}" ]; then
	global.bootm.oftree="$oftree"
fi

nfsroot="/home/${global.user}/nfsroot/${global.hostname}"

ip_route_get -b ${global.net.server} global.linux.bootargs.dyn.ip

initramfs="${path}/${global.user}-initramfs-${global.hostname}"
if [ -f "${initramfs}" ]; then
	global.bootm.initrd="$initramfs"
else
	global.linux.bootargs.dyn.root="root=/dev/nfs nfsroot=$nfsroot,v3,tcp"
fi