Browse Source

change the behavior of the midi related device filename creation to follow

the same behavior as audio devices.
--
Brought to my attention by and reviewed by: fries@
OPENBSD_3_0
brad 23 years ago
parent
commit
f2750a535b
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      src/etc/etc.i386/MAKEDEV

+ 6
- 5
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.102 2001/07/03 22:52:30 niklas Exp $
# $OpenBSD: MAKEDEV,v 1.103 2001/09/21 18:21:12 brad Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -198,7 +198,7 @@ all)
sh $this random ses0 uk0 uk1 ss0 ss1 pctr bktr0 tuner0 wdt0 sh $this random ses0 uk0 uk1 ss0 ss1 pctr bktr0 tuner0 wdt0
sh $this fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H sh $this fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H
sh $this fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H sh $this fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H
sh $this xfs0 music altq
sh $this xfs0 music0 altq
sh $this rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7 sh $this rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
sh $this usbs crypto iop0 iop1 sh $this usbs crypto iop0 iop1
# MISSING: # MISSING:
@ -644,15 +644,16 @@ rmidi*)
;; ;;
music*) music*)
[ "$unit" = "0" ] && n= || n=$unit
music=music$n
sequencer=sequencer$n
major=53 major=53
music=music$unit
sequencer=sequencer$unit
rm -f $music $sequencer rm -f $music $sequencer
mknod $music c $major $(( $unit + 0 )) mknod $music c $major $(( $unit + 0 ))
mknod $sequencer c $major $(( $unit + 128 )) mknod $sequencer c $major $(( $unit + 128 ))
chown root.wheel $music $sequencer chown root.wheel $music $sequencer
chmod 666 $music $sequencer chmod 666 $music $sequencer
[ -e music ] || ln -s $music music
[ -e sequencer ] || ln -s $sequencer sequencer
;; ;;
apm*) apm*)


Loading…
Cancel
Save