1999-01-30 06:29:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-01-30 06:29:48 +00:00
|
|
|
|
1999-02-22 11:44:46 +00:00
|
|
|
STREAMS=`kldstat -v | egrep 'streams'`
|
|
|
|
SVR4=`kldstat -v | egrep 'svr4elf'`
|
1999-01-30 06:29:48 +00:00
|
|
|
|
1999-02-22 11:44:46 +00:00
|
|
|
if [ "x$SVR4" != x ] ; then
|
1999-01-30 06:29:48 +00:00
|
|
|
echo SysVR4 driver already loaded
|
|
|
|
exit 1
|
|
|
|
else
|
1999-02-22 11:44:46 +00:00
|
|
|
if [ "x$STREAMS" = x ] ; then
|
|
|
|
kldload streams
|
|
|
|
echo "Loaded SysVR4 STREAMS driver"
|
|
|
|
fi
|
1999-01-30 06:29:48 +00:00
|
|
|
kldload svr4
|
1999-02-22 11:44:46 +00:00
|
|
|
echo "Loaded SysVR4 emulator"
|
1999-01-30 06:29:48 +00:00
|
|
|
fi
|