diff options
author | dufault <dufault@FreeBSD.org> | 1995-05-01 14:34:45 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1995-05-01 14:34:45 +0000 |
commit | 26b0e06cf48fed59dd81a02ffb927e61268e106f (patch) | |
tree | ffcce77bf0e8d50e454f55b82a521404f08ec053 /etc | |
parent | 77ae782956ec79cb24d7ea98180f010677b926d6 (diff) | |
download | FreeBSD-src-26b0e06cf48fed59dd81a02ffb927e61268e106f.zip FreeBSD-src-26b0e06cf48fed59dd81a02ffb927e61268e106f.tar.gz |
Use the correct offset for LabPC digital devices.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/MAKEDEV | 6 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 0fc1c3c..9dac2c6 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -85,7 +85,7 @@ # isdn* ISDN devices # labpc* National Instrument's Lab-PC and LAB-PC+ # -# $Id: MAKEDEV,v 1.87 1995/04/28 07:53:43 bde Exp $ +# $Id: MAKEDEV,v 1.88 1995/04/30 07:56:45 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -906,7 +906,7 @@ labpc*) name=labpcdio unit=`expr $i : 'labpcdio\(.*\)'` all="0 1 2 3" - offset=128 + offset=8 ;; *) echo "Don't understand that labpc name" @@ -918,11 +918,13 @@ labpc*) fi case $unit in 0|1|2|3|4|5|6|7) + rm -f $name$unit mknod $name$unit c 66 `expr $offset + $unit ` ;; all) for i in $all do + rm -f $name$i mknod $name$i c 66 `expr $offset + $i ` done ;; diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 0fc1c3c..9dac2c6 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -85,7 +85,7 @@ # isdn* ISDN devices # labpc* National Instrument's Lab-PC and LAB-PC+ # -# $Id: MAKEDEV,v 1.87 1995/04/28 07:53:43 bde Exp $ +# $Id: MAKEDEV,v 1.88 1995/04/30 07:56:45 jkh Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -906,7 +906,7 @@ labpc*) name=labpcdio unit=`expr $i : 'labpcdio\(.*\)'` all="0 1 2 3" - offset=128 + offset=8 ;; *) echo "Don't understand that labpc name" @@ -918,11 +918,13 @@ labpc*) fi case $unit in 0|1|2|3|4|5|6|7) + rm -f $name$unit mknod $name$unit c 66 `expr $offset + $unit ` ;; all) for i in $all do + rm -f $name$i mknod $name$i c 66 `expr $offset + $i ` done ;; |