diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1998-04-30 06:13:01 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1998-04-30 06:13:01 +0000 |
commit | 99564d1da88c4a9ff0951c565bbd36b62f50efa6 (patch) | |
tree | 317e3bdc8f0191c9c1bc0b2af5162d4f09b174a6 /etc/etc.sparc/MAKEDEV | |
parent | dd54c3189529154d3e721734ddc2124dbcc0ab8b (diff) |
Updated sparc audio
Diffstat (limited to 'etc/etc.sparc/MAKEDEV')
-rw-r--r-- | etc/etc.sparc/MAKEDEV | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/etc/etc.sparc/MAKEDEV b/etc/etc.sparc/MAKEDEV index b6886f85205..db55a0fb2f1 100644 --- a/etc/etc.sparc/MAKEDEV +++ b/etc/etc.sparc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.40 1998/03/24 19:32:48 marc Exp $ +# $OpenBSD: MAKEDEV,v 1.41 1998/04/30 06:12:51 jason Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -246,8 +246,21 @@ tcx*) mknod tcx$unit c 109 $unit; chmod 666 tcx$unit ;; -audio) - mknod audio c 69 0; chmod 666 audio +audio*) + unit=${i#audio} + audio=audio$unit + sound=sound$unit + mixer=mixer$unit + major=69 + 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 ;; openprom) |