blob: 3f804bf1f908e59d448d8d059812ff0dcea51dce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# $FreeBSD$
if [ $# -le 1 ]; then
LOADERS="coff" # elf
fi
set -e
kernelfile=`sysctl -n kern.bootfile`
kernelfile=`basename $kernelfile`
newkernelfile="/tmp/${kernelfile}+ibcs2"
modload -e ibcs2_mod -o $newkernelfile -q /lkm/ibcs2_mod.o
for loader in $LOADERS; do
modload -e ibcs2_${loader}_mod -o/tmp/ibcs2_${loader} -q -u \
-A${newkernelfile} /lkm/ibcs2_${loader}_mod.o
done
rm ${newkernelfile}
set +e
|