|
|
@ -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 @@ all) |
|
|
|
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 @@ lkm) |
|
|
|
# ;; |
|
|
|
|
|
|
|
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 @@ audio*) |
|
|
|
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*) |
|
|
|