Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/etc.pmax Make audio devices.
details: https://anonhg.NetBSD.org/src/rev/7ab753e3c51f
branches: trunk
changeset: 485626:7ab753e3c51f
user: augustss <augustss%NetBSD.org@localhost>
date: Tue May 02 08:17:51 2000 +0000
description:
Make audio devices.
diffstat:
etc/etc.pmax/MAKEDEV | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diffs (75 lines):
diff -r 70f25ea996c4 -r 7ab753e3c51f etc/etc.pmax/MAKEDEV
--- a/etc/etc.pmax/MAKEDEV Tue May 02 08:04:24 2000 +0000
+++ b/etc/etc.pmax/MAKEDEV Tue May 02 08:17:51 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.36 2000/02/26 04:43:27 nisimura Exp $
+# $NetBSD: MAKEDEV,v 1.37 2000/05/02 08:17:51 augustss Exp $
#
# from: @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@@ -34,6 +34,7 @@
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
# Special purpose devices:
+# audio* phone-quality audio on Personal DECstations
# bpf* packet filter
# ch* SCSI media changer
# fd file descriptors (/dev/fd/*)
@@ -49,7 +50,6 @@
# fb* generic framebuffer pseudo-device
# px* PixelStamp Xserver access
# The following names are reserved for future use:
-# audio* phone-quality audio on Personal DECstations
# fdc* Baseboard 2.88 floppy disk on Personal DECstations
# ttyE? Workstation console ("wscons") glass-tty emulators
#
@@ -72,7 +72,7 @@
sh $0 mouse
sh $0 ipl random lkm
sh $0 local
-# sh $0 audio0 audio1 audio2 audio3
+ sh $0 audio
# sh $0 cd0
# sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
# sh $0 st0 st1
@@ -115,6 +115,14 @@
chmod 666 fd/*
;;
+audio)
+ sh $0 audio0
+ ln -fs sound0 sound
+ ln -fs audio0 audio
+ ln -fs mixer0 mixer
+ ln -fs audioctl0 audioctl
+ ;;
+
tz*)
case $i in
tz*) unit=${i#tz}; chr=10;;
@@ -153,6 +161,23 @@
chmod 640 lkm
;;
+audio*)
+ unit=${i#audio}
+ audio=audio$unit
+ sound=sound$unit
+ mixer=mixer$unit
+ major=99
+ 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
+ ;;
+
md*)
unit=${i#md}; blk=17; chr=97;
rm -f md${unit}? rmd${unit}?
Home |
Main Index |
Thread Index |
Old Index