summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornewton <newton@FreeBSD.org>1999-02-22 11:44:46 +0000
committernewton <newton@FreeBSD.org>1999-02-22 11:44:46 +0000
commit2d24e4c75dd062632ab7648ed6d04dcea99a13eb (patch)
treeee07b6d29226d89518e28691f6763f58ce8485b9 /sys/modules
parentf4ef1ef7800544d6be643b5191de1b72717d2674 (diff)
downloadFreeBSD-src-2d24e4c75dd062632ab7648ed6d04dcea99a13eb.zip
FreeBSD-src-2d24e4c75dd062632ab7648ed6d04dcea99a13eb.tar.gz
Converted "streams" pseudo-device into a KLD
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile5
-rw-r--r--sys/modules/svr4/svr4.sh12
2 files changed, 12 insertions, 5 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index dc88aa9..59d56bb 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.49 1999/01/30 06:31:51 newton Exp $
+# $Id: Makefile,v 1.50 1999/02/03 04:18:25 semenu Exp $
# XXX present but broken: ip_mroute_mod
# XXX not yet completed porting: acd
@@ -9,7 +9,8 @@ SUBDIR= ccd cd9660 coda fdesc if_disc if_ppp if_sl if_tun ipfw kernfs \
# XXX some of these can move to the general case when de-i386'ed
.if ${MACHINE_ARCH} == "i386"
-SUBDIR+=atapi coff fpu gnufpu ibcs2 joy linux lkm pcic splash syscons vesa svr4
+SUBDIR+=atapi coff fpu gnufpu ibcs2 joy linux lkm pcic splash streams \
+ syscons vesa svr4
.endif
.include <bsd.subdir.mk>
diff --git a/sys/modules/svr4/svr4.sh b/sys/modules/svr4/svr4.sh
index 1d8e694..6acf668 100644
--- a/sys/modules/svr4/svr4.sh
+++ b/sys/modules/svr4/svr4.sh
@@ -1,12 +1,18 @@
#!/bin/sh
-# $Id$
+# $Id: svr4.sh,v 1.1 1999/01/30 06:29:48 newton Exp $
-FOUND=`kldstat -v | egrep 'svr4elf'`
+STREAMS=`kldstat -v | egrep 'streams'`
+SVR4=`kldstat -v | egrep 'svr4elf'`
-if [ "x$FOUND" != x ] ; then
+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
OpenPOWER on IntegriCloud