freebsd-dev/sys/modules/ibcs2/ibcs2.sh
Jordan K. Hubbard 1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
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.
1997-01-14 07:20:47 +00:00

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