1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
21 lines
421 B
Bash
21 lines
421 B
Bash
#!/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
|