Browse Source

make the appropriate audio devices

OPENBSD_2_4
provos 26 years ago
parent
commit
8bab90433e
1 changed files with 15 additions and 7 deletions
  1. +15
    -7
      src/etc/etc.i386/MAKEDEV

+ 15
- 7
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.57 1998/03/24 19:00:27 marc Exp $
# $OpenBSD: MAKEDEV,v 1.58 1998/04/27 14:50:38 provos 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.
@ -517,12 +517,20 @@ mouse*) # (XXX)
;; ;;
audio*) audio*)
rm -f audio sound mixer
mknod sound c 42 0
mknod audio c 42 128
mknod mixer c 42 16
chown root.wheel audio sound mixer
chmod 666 audio sound mixer
unit=${i#audio}
audio=audio$unit
sound=sound$unit
mixer=mixer$unit
major=42
audioctl=audioctl$unit
if [ "$unit" = "" ]; then unit=0; fi
rm -f $audio $sound $mixer $audioctl
mknod $sound c $major $(($unit + 0))
mknod $audio c $major $(($unit + 128))
mknod $mixer c $major $(($unit + 16))
mknod $audioctl c $major $(($unit + 192))
chown root.wheel $audio $sound $mixer $audioctl
chmod 666 $audio $sound $mixer $audioctl
;; ;;
joy*) joy*)


Loading…
Cancel
Save