mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
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.
This commit is contained in:
parent
7ca0641bb9
commit
35178aadcd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=864
29
etc/MAKEDEV
29
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user