summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-07 22:50:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-07 22:50:59 +0000
commit250b3d15afc014ee96c7b2794713de712baae869 (patch)
tree24faa43ca63a530980b154829753cd1d07f50e56 /etc
parentdd8e112cb620907e7d55ce9ea82f77a705d3fd28 (diff)
fix tty0?, fd, and skip lp/lptwo for now
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.mvme68k/MAKEDEV20
1 files changed, 16 insertions, 4 deletions
diff --git a/etc/etc.mvme68k/MAKEDEV b/etc/etc.mvme68k/MAKEDEV
index 2ec022d462f..4fc389bc0d5 100644
--- a/etc/etc.mvme68k/MAKEDEV
+++ b/etc/etc.mvme68k/MAKEDEV
@@ -31,7 +31,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: MAKEDEV,v 1.2 1995/10/31 19:12:45 deraadt Exp $
+# $Id: MAKEDEV,v 1.3 1995/11/07 22:50:58 deraadt Exp $
#
# Device "make" file. Valid arguments:
# all makes all known devices, including local devices,
@@ -86,8 +86,9 @@ all)
sh MAKEDEV vnd0 vnd1 vnd2 vnd3 vnd4 pty0
sh MAKEDEV vnd5 vnd6 cd0 bpf0 bpf1 bpf2 bpf3
#sh MAKEDEV ccd0 ccd1 ccd2 ccd3
- sh MAKEDEV tun0 tun1 lp0 lptwo0 lkm local
+ sh MAKEDEV tun0 tun1 lkm local
sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0
+ #sh MAKEDEV lp0 lptwo0
;;
std)
@@ -106,6 +107,17 @@ std)
mknod stderr c 21 2 ; chmod 666 stderr
;;
+fd)
+ rm -f fd/*
+ mkdir fd > /dev/null 2>&1
+ (cd fd && eval `echo "" | awk ' BEGIN { \
+ for (i = 0; i < 64; i++) \
+ printf("mknod %d c 21 %d;", i, i)}'`)
+ chown -R bin.bin fd
+ chmod 555 fd
+ chmod 666 fd/*
+ ;;
+
st*)
umask 2 ; unit=`expr $i : '..\(.*\)'`
case $i in
@@ -222,7 +234,7 @@ tty0*|ttya|ttyb|ttyc|ttyd)
0)
unit=`expr $i : 'tty.\(.\)'`
case $unit in
- 0)
+ 0|1|2|3)
rm -f tty0${unit} cua0${unit}
mknod tty0${unit} c 13 ${unit}
mknod cua0${unit} c 13 `expr 128 + ${unit}`
@@ -255,7 +267,7 @@ lp*)
mknod par${unit} c 28 ${unit}
;;
*)
- echo bad unit for par in: $i
+ echo bad unit for lp in: $i
;;
esac
;;