diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-10-07 22:10:56 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-10-07 22:10:56 +0000 |
commit | ca7c0b7be348ee6e20a9e029457b2cb54955cd39 (patch) | |
tree | 77362db679c43a032431b9e29f46e0626c73a49e /etc/etc.amiga/MAKEDEV | |
parent | 850a4c9bdc40b09e5d0724182f7a9ea0a4cb07df (diff) |
Audio stuff from NetBSD
Diffstat (limited to 'etc/etc.amiga/MAKEDEV')
-rw-r--r-- | etc/etc.amiga/MAKEDEV | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV index e38354bf050..02787fce633 100644 --- a/etc/etc.amiga/MAKEDEV +++ b/etc/etc.amiga/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.27 1997/09/16 06:00:51 deraadt Exp $ +# $OpenBSD: MAKEDEV,v 1.28 1997/10/07 22:10:55 niklas Exp $ # $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -91,6 +91,7 @@ # ss* SCSI scanners # uk* unknown SCSI # *random random data source +# audio* one unit of the audio device. Unit 0 is custom chip audio. PATH=/sbin:/bin:/usr/sbin:/usr/bin umask 77 @@ -122,7 +123,7 @@ all) sh MAKEDEV view00 view01 view02 view03 view04 view05 pty0 pty1 sh MAKEDEV lpa0 lpa1 lpt0 lpt1 lpt2 ipl sh MAKEDEV ccd0 ccd1 ccd2 ccd3 wd0 wd1 acd0 ch0 uk0 uk1 - sh MAKEDEV tun0 tun1 par0 lkm ss0 random local + sh MAKEDEV tun0 tun1 par0 lkm ss0 random audio0 local ;; floppy|ramdisk) @@ -577,6 +578,23 @@ uk*) chmod 640 uk$unit ;; +audio*) + unit=${i#audio} + audio=audio$unit + sound=sound$unit + mixer=mixer$unit + major=41 + 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 + ;; + local) umask 0 test -s MAKEDEV.local && sh MAKEDEV.local |