1994-10-14 08:45:16 +00:00
|
|
|
#!/bin/sh
|
1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1994-10-14 08:45:16 +00:00
|
|
|
if [ $# -le 1 ]; then
|
|
|
|
LOADERS="coff" # elf
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
kernelfile=`sysctl -n kern.bootfile`
|
|
|
|
kernelfile=`basename $kernelfile`
|
|
|
|
newkernelfile="/tmp/${kernelfile}+ibcs2"
|
|
|
|
|
1995-10-28 12:35:14 +00:00
|
|
|
modload -e ibcs2_mod -o $newkernelfile -q /lkm/ibcs2_mod.o
|
|
|
|
|
1994-10-14 08:45:16 +00:00
|
|
|
for loader in $LOADERS; do
|
1995-10-28 12:35:14 +00:00
|
|
|
modload -e ibcs2_${loader}_mod -o/tmp/ibcs2_${loader} -q -u \
|
1994-10-14 08:45:16 +00:00
|
|
|
-A${newkernelfile} /lkm/ibcs2_${loader}_mod.o
|
|
|
|
done
|
1995-10-28 12:35:14 +00:00
|
|
|
rm ${newkernelfile}
|
1994-10-14 08:45:16 +00:00
|
|
|
set +e
|