27.12.2014 Views

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8–gPXE<br />

Netbooting Over InfiniBand<br />

/sbin/insmod /lib/ipv6.ko'<br />

# Some versions of IPv6 have dependencies, add them.<br />

xfrm=$(modinfo -F depends ipv6)<br />

if [ ${xfrm} ]; then<br />

cp $(find /lib/modules/$(uname -r) -name ${xfrm}.ko)<br />

lib<br />

IFS=' ' v6cmd='/sbin/insmod /lib/'${xfrm}'.ko<br />

'"$v6cmd"<br />

crypto=$(modinfo -F depends $xfrm)<br />

if [ ${crypto} ]; then<br />

cp $(find /lib/modules/$(uname -r) -name<br />

${crypto}.ko) lib<br />

IFS=' ' v6cmd='/sbin/insmod /lib/'${crypto}'.ko<br />

'"$v6cmd"<br />

fi<br />

fi<br />

fi<br />

# we need insmod to load the modules; if not present it,<br />

copy it<br />

mkdir -p sbin<br />

grep -q insmod ../Orig-listing || cp /sbin/insmod sbin<br />

echo -e 'NOTE: you will need to config ib0 in the normal<br />

way in your booted root<br />

filesystem, in order to use it for NFS, etc.\n'<br />

# Now build the commands to load the additional modules.<br />

We add them just after<br />

# the last existing insmod command, so all other<br />

dependences will be resolved<br />

# You can change the location if desired or necessary.<br />

# loading order is important. You can verify the order<br />

works ahead of time<br />

# by running "/etc/init.d/openibd stop", and then running<br />

these commands<br />

# manually by cut and paste<br />

# This will work on SLES, although different than the<br />

standard mechanism<br />

cat > ../init-cmds

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!