summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-12-30 20:51:36 +0000
committerjoerg <joerg@FreeBSD.org>1996-12-30 20:51:36 +0000
commitb5550d52c4583bdcdd69712ec6ec85f9b5af3750 (patch)
tree03e4a28b0197156a20e359e00fbcc9706b3ab5ec /etc
parent4aa5c59642604da190cef3bb9ae8bb93cac351f6 (diff)
downloadFreeBSD-src-b5550d52c4583bdcdd69712ec6ec85f9b5af3750.zip
FreeBSD-src-b5550d52c4583bdcdd69712ec6ec85f9b5af3750.tar.gz
While being here, also create all the gsc device nodes as described in
the gsc(4) man page, and allow for more than one unit number.
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV14
-rw-r--r--etc/etc.i386/MAKEDEV14
2 files changed, 18 insertions, 10 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index 71a9f08..54b7687 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -102,7 +102,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
-# $Id: MAKEDEV,v 1.128 1996/11/14 14:28:26 andreas Exp $
+# $Id: MAKEDEV,v 1.129 1996/12/13 07:54:57 jkh Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@@ -1000,10 +1000,14 @@ vat)
;;
gsc*)
- rm -f gsc0
- mknod gsc0 c 47 0
- chmod 666 gsc0
- chown root.wheel gsc0
+ unit=`expr $i : 'gsc\(.*\)'`
+ rm -f gsc${unit}*
+ mknod gsc${unit} c 47 $unit
+ mknod gsc${unit}p c 47 $(($unit + 8))
+ mknod gsc${unit}d c 47 $(($unit + 32))
+ mknod gsc${unit}pd c 47 $(($unit + 40))
+ chmod 666 gsc${unit}*
+ chown root.wheel gsc${unit}*
;;
apm*)
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 71a9f08..54b7687 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -102,7 +102,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
-# $Id: MAKEDEV,v 1.128 1996/11/14 14:28:26 andreas Exp $
+# $Id: MAKEDEV,v 1.129 1996/12/13 07:54:57 jkh Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@@ -1000,10 +1000,14 @@ vat)
;;
gsc*)
- rm -f gsc0
- mknod gsc0 c 47 0
- chmod 666 gsc0
- chown root.wheel gsc0
+ unit=`expr $i : 'gsc\(.*\)'`
+ rm -f gsc${unit}*
+ mknod gsc${unit} c 47 $unit
+ mknod gsc${unit}p c 47 $(($unit + 8))
+ mknod gsc${unit}d c 47 $(($unit + 32))
+ mknod gsc${unit}pd c 47 $(($unit + 40))
+ chmod 666 gsc${unit}*
+ chown root.wheel gsc${unit}*
;;
apm*)
OpenPOWER on IntegriCloud