Update for audio(4) from ancient okiadpcm.
This commit is contained in:
parent
c9c82d303a
commit
e4db0897cf
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.31 2001/01/08 22:26:29 martin Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.32 2001/05/05 02:08:51 minoura Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -463,13 +463,29 @@ lkm)
|
||||
chmod 640 lkm
|
||||
;;
|
||||
|
||||
audio)
|
||||
sh $0 audio0
|
||||
ln -fs sound0 sound
|
||||
ln -fs audio0 audio
|
||||
ln -fs mixer0 mixer
|
||||
ln -fs audioctl0 audioctl
|
||||
;;
|
||||
|
||||
audio*)
|
||||
rm -f adpcm pcm audio
|
||||
mknod adpcm c 17 0
|
||||
mknod pcm c 17 64
|
||||
mknod audio c 17 128
|
||||
chown root:wheel adpcm pcm audio
|
||||
chmod 666 adpcm pcm audio
|
||||
unit=${i#audio}
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=17
|
||||
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
|
||||
;;
|
||||
|
||||
sram)
|
||||
|
Loading…
Reference in New Issue
Block a user