9
0
Fork 0
barebox/arch/arm/boards/at91sam9m10ihd/env/boot/net-usb

18 lines
403 B
Bash

#!/bin/sh
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"