Browse Source

Audio stuff from NetBSD

OPENBSD_2_2
niklas 27 years ago
parent
commit
e3fa04e716
1 changed files with 20 additions and 2 deletions
  1. +20
    -2
      src/etc/etc.amiga/MAKEDEV

+ 20
- 2
src/etc/etc.amiga/MAKEDEV View File

@ -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


Loading…
Cancel
Save