summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-06-22 14:54:05 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-06-22 14:54:05 +0000
commit8a58b83d82cba29525eb6649d9364cb4fa22f37d (patch)
treeb4b27f8b023324d3978d6420d94642de65793726
parente6b090d4f90cc39e50a7e7fe633df06c78d58304 (diff)
Add /dev/audio to alpha
-rw-r--r--etc/etc.alpha/MAKEDEV19
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV
index 8a87f1a8e1b..dd84b047087 100644
--- a/etc/etc.alpha/MAKEDEV
+++ b/etc/etc.alpha/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.52 2001/05/30 02:11:11 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.53 2001/06/22 14:54:04 nate Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -75,6 +75,7 @@
# bpf* Berkeley Packet Filter
# fd makes fd/* for the fdescfs.
# lkm loadable kernel modules interface
+# audio audio device
# tun* network tunnel driver
# mmclock memory mapped clock
# kbd keyboard (provides events, for X11)
@@ -494,6 +495,22 @@ lkm)
chmod 640 lkm
;;
+audio*)
+ [ "$unit" = "0" ] && n= || n=$unit
+ audio=audio$n
+ sound=sound$n
+ mixer=mixer$n
+ audioctl=audioctl$n
+ major=24
+ rm -f $audio $sound $mixer $audioctl
+ mknod $sound c $major $unit
+ 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
+ ;;
+
mmclock)
rm -f mmclock
mknod mmclock c 28 0