summaryrefslogtreecommitdiff
path: root/etc/etc.i386/MAKEDEV
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-10-13 00:53:53 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-10-13 00:53:53 +0000
commit2791bcbb96fbc04f3d2cd70d211169ad78efaee9 (patch)
treeee578bff5156974dc20af12b184984dd7ae2b03b /etc/etc.i386/MAKEDEV
parent88ccb2367a7dd08ce6c9d76d2a2fa6262bd3d504 (diff)
pms driver now uses minor numbers.
Diffstat (limited to 'etc/etc.i386/MAKEDEV')
-rw-r--r--etc/etc.i386/MAKEDEV15
1 files changed, 12 insertions, 3 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index a6d924c1f7b..13f44d4e13d 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.27 1996/09/28 18:28:01 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.28 1996/10/13 00:53:52 downsj Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -334,18 +334,27 @@ lkm)
chmod 640 lkm
;;
-mms*|lms*|pms*)
+mms*|lms*)
unit=`expr $i : '.ms\(.*\)'`
case $i in
mms*) name=mms; chr=35;;
lms*) name=lms; chr=36;;
- pms*) name=pms; chr=37;;
esac
rm -f $name$unit
mknod $name$unit c $chr $unit
chown root.wheel $name$unit
;;
+pms*)
+ unit=`expr $i : '.ms\(.*\)'`
+ rm -f pms${unit}
+ rm -f pms${unit}?
+ mknod pms${unit} c 37 0
+ mknod pms${unit}r c 37 1
+ chown root.wheel pms${unit}
+ chown root.wheel pms${unit}?
+ ;;
+
mouse*) # (XXX)
name=`expr $i : 'mouse-\(.*\)'`
if [ ! -c $name ]; then