summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1993-12-16 04:34:11 +0000
committerache <ache@FreeBSD.org>1993-12-16 04:34:11 +0000
commitb09ed3483fb54fc8ffbe1cb450a8a4d9e79e7abe (patch)
tree79d65ec2f6d8af9b2306d74aa1d9c838fe424b96 /etc/MAKEDEV
parentf6d8620bac59c153dd829a64dd1f31e3f6909cd1 (diff)
downloadFreeBSD-src-b09ed3483fb54fc8ffbe1cb450a8a4d9e79e7abe.zip
FreeBSD-src-b09ed3483fb54fc8ffbe1cb450a8a4d9e79e7abe.tar.gz
No more partition bits in floppy minor.
Now minor looks like UU DDDDDD, UU - unit, DDDDDD - density. If density == 0, CMOS-detect format assumed. For old users/pgms use fake partitions now, i.e. ln fd0 fd0[a-h] No new floppy names added (expect fd? and rfd?), because don't have agreement yet, so make devices only for CMOS-detected formats.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV29
1 files changed, 26 insertions, 3 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index edecd27..a4919bb 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -71,7 +71,7 @@
# tw* xten power controller
# snd* various sound cards
#
-# $Id: MAKEDEV,v 1.16 1993/11/22 05:40:49 rgrimes Exp $
+# $Id: MAKEDEV,v 1.17 1993/12/14 11:11:37 alm Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
@@ -137,10 +137,33 @@ wt*)
umask 77
;;
-fd*|sd*|wd*)
+fd*)
+ umask 2 ; unit=`expr $i : '..\(.*\)'`
+ name=fd; blk=2; chr=9;
+ rm -f $name$unit* r$name$unit*
+ case $unit in
+ 0|1|2|3)
+ mknod ${name}${unit} b $blk `expr $unit '*' 64`
+ mknod r${name}${unit} c $chr `expr $unit '*' 64`
+ # Fake BSD partitions
+ for i in a b c d e f g h
+ do
+ ln ${name}${unit} ${name}${unit}$i
+ ln r${name}${unit} r${name}${unit}$i
+ done
+ chgrp operator ${name}${unit} r${name}${unit}
+ chmod 640 ${name}${unit} r${name}${unit}
+ ;;
+ *)
+ echo bad unit for disk in: $i
+ ;;
+ esac
+ umask 77
+ ;;
+
+sd*|wd*)
umask 2 ; unit=`expr $i : '..\(.*\)'`
case $i in
- fd*) name=fd; blk=2; chr=9;;
sd*) name=sd; blk=4; chr=13;;
wd*) name=wd; blk=0; chr=3;;
esac
OpenPOWER on IntegriCloud