summaryrefslogtreecommitdiff
path: root/etc/etc.amiga
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2001-04-10 03:03:54 +0000
committerBrad Smith <brad@cvs.openbsd.org>2001-04-10 03:03:54 +0000
commit517e9482c619086e7cea98ef5591f85bfe04b51d (patch)
tree4c14f2c37007eb3368fe0fa4d105ed51505a25ca /etc/etc.amiga
parentc2e66cd19f6c6899beea5f1fda85bbec647c593a (diff)
keep naming of audio devices consistent across all archs that have audio
support. -- Ok'd by: deraadt@
Diffstat (limited to 'etc/etc.amiga')
-rw-r--r--etc/etc.amiga/MAKEDEV20
1 files changed, 11 insertions, 9 deletions
diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV
index 11c39932dcf..dbd56c36923 100644
--- a/etc/etc.amiga/MAKEDEV
+++ b/etc/etc.amiga/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.45 2000/09/03 14:46:45 espie Exp $
+# $OpenBSD: MAKEDEV,v 1.46 2001/04/10 03:03:50 brad Exp $
# $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -654,20 +654,22 @@ uk*)
;;
audio*)
- unit=${i#audio}
- audio=audio$unit
- sound=sound$unit
- mixer=mixer$unit
- major=39
- audioctl=audioctl$unit
- if [ "$unit" = "" ]; then unit=0; fi
+ major=39
+ audio=audio$unit
+ sound=sound$unit
+ mixer=mixer$unit
+ audioctl=audioctl$unit
rm -f $audio $sound $mixer $audioctl
- mknod $sound c $major $(($unit + 0))
+ 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
+ [ -e audio ] || ln -s $audio audio
+ [ -e mixer ] || ln -s $mixer mixer
+ [ -e sound ] || ln -s $sound sound
+ [ -e audioctl ] || ln -s $audioctl audioctl
;;