[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

no audio[1-9]? [MAKEDEV changes 'tween 2.8 and 2.9]



hello, was curious why in 2.9 am unable to create audio1 plus others
for it. in CVS i found the diff. why on earth line:

-       [ "$unit" = "0" ] && n= || n=$unit

got deleted? without it 'MAKEDEV audio1' (instead '1' any number can be
used) it is alway 'audio' and co. deleted and recreated...

===================================================================
RCS file: /usr/OpenBSD/cvs/src/etc/etc.i386/MAKEDEV,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- src/etc/etc.i386/MAKEDEV    2001/02/20 23:53:26     1.89
+++ src/etc/etc.i386/MAKEDEV    2001/04/10 03:03:51     1.90
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $OpenBSD: MAKEDEV,v 1.89 2001/02/20 23:53:26 jbm Exp $
+#      $OpenBSD: MAKEDEV,v 1.90 2001/04/10 03:03:51 brad Exp $
 #      $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
@@ -84,7 +84,7 @@
 #      bpf*    packet filter
 #      speaker pc speaker                              (XXX - installed)
 #      lkm     loadable kernel modules interface
-#      audio   audio device
+#      audio*  audio device
 #      apm     power management device
 #      tun*    network tunnel driver
 #      joy*    joystick driver
@@ -191,7 +191,7 @@
        sh $this wscons
        sh $this ipl tun0 tun1 tun2
        sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9
-       sh $this speaker lkm audio joy0 joy1 apm local
+       sh $this speaker lkm audio0 joy0 joy1 apm local
        sh $this random ses0 uk0 uk1 ss0 ss1 pctr bktr0 tuner0 wdt0
        sh $this fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H 
        sh $this fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H
@@ -615,12 +615,11 @@
 #      ;;
 
 audio*)
-       [ "$unit" = "0" ] && n= || n=$unit
+       major=42
        audio=audio$n
        sound=sound$n
        mixer=mixer$n
        audioctl=audioctl$n
-       major=42
        rm -f $audio $sound $mixer $audioctl
        mknod $sound    c $major $unit
        mknod $audio    c $major $(( $unit + 128 ))
@@ -628,6 +627,10 @@
        mknod $audioctl c $major $(( $unit + 192 ))
        chown root.wheel $audio $sound $mixer $audioctl
        chmod 666 $audio $sound $mixer $audioctl
+       [ -e audio ] || ln -s $audio audio
+       [ -e mixer ] || ln -s $mixer mixer
+       [ -e sound ] || ln -s $sound sound
+       [ -e audioctl ] || ln -s $audioctl audioctl
        ;;
 
 joy*)

-- 
Denis A. Doroshenko  [GPRS/IN/WAP, VAS group engineer] .-.        _|_  |
[Omnitel Ltd., T.Sevcenkos st. 25, Vilnius, Lithuania] | | _ _  _ .| _ |
[Phone: +370 9863486 E-mail: d.doroshenko@omnitel.net] |_|| | || |||(/_|_