freebsd-dev/sys/modules/svr4/svr4.sh
1999-08-28 01:08:13 +00:00

19 lines
330 B
Bash

#!/bin/sh
# $FreeBSD$
STREAMS=`kldstat -v | egrep 'streams'`
SVR4=`kldstat -v | egrep 'svr4elf'`
if [ "x$SVR4" != x ] ; then
echo SysVR4 driver already loaded
exit 1
else
if [ "x$STREAMS" = x ] ; then
kldload streams
echo "Loaded SysVR4 STREAMS driver"
fi
kldload svr4
echo "Loaded SysVR4 emulator"
fi