19 lines
390 B
Bash
19 lines
390 B
Bash
|
#!/bin/sh
|
||
|
# $Id$
|
||
|
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_init -o $newkernelfile -q /lkm/ibcs2_mod.o
|
||
|
for loader in $LOADERS; do
|
||
|
modload -e${loader}_init -o/tmp/ibcs2_${loader}.o -qu \
|
||
|
-A${newkernelfile} /lkm/ibcs2_${loader}_mod.o
|
||
|
done
|
||
|
set +e
|