diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-24 19:32:49 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-24 19:32:49 +0000 |
commit | e62bb56abba6bdaeb2d246e9183bff454f05b756 (patch) | |
tree | b0ea75b8ca97dee1139b49bd4edb0f80f02a18af /etc | |
parent | f3f517c76636cc97a3d5f401405f2b014e5e75a2 (diff) |
Make floppy device names match the pattern <device name><number><sub-class>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index 5e5b2745542..b6886f85205 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.39 1998/03/02 14:32:26 jason Exp $ +# $OpenBSD: MAKEDEV,v 1.40 1998/03/24 19:32:48 marc Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -162,7 +162,7 @@ case $i in all) sh ${this} std sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3 sh ${this} cd0 st0 st1 rd0 - sh ${this} fd0 fdB0 fdC0 fdD0 fdE0 fdF0 fdG0 fdH0 + sh ${this} fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H sh ${this} uk0 uk1 sh ${this} ss0 ss1 sh ${this} pty0 vnd0 vnd1 vnd2 vnd3 audio tun0 tun1 tun2 tun3 @@ -277,8 +277,8 @@ tun*) ;; fd*) - umask 2 ; unit=`expr $i : 'fd.*\(.\)$'` - typnam=`expr $i : 'fd\(.\).*'` + umask 2 ; typnam=`expr $i : 'fd.*\(.\)$'` + unit=`expr $i : 'fd\(.\).*'` case $typnam in 0|1) typnam=; typnum=0;; # no type specified, assume A A) typnam=; typnum=0;; @@ -295,7 +295,7 @@ fd*) 0|1) blk=16; chr=54;; *) echo bad unit $unit for $i; exit 1;; esac - nam=fd${typnam}$unit + nam=fd${unit}${typnam} rm -f ${nam}? r${nam}? basenum=`expr $unit '*' 128 + $typnum '*' 16` mknod ${nam}a b $blk `expr $basenum + 0` |