diff options
author | dgregor <dgregor@cvs.openbsd.org> | 1997-08-04 23:43:04 +0000 |
---|---|---|
committer | dgregor <dgregor@cvs.openbsd.org> | 1997-08-04 23:43:04 +0000 |
commit | c8d7b48563833d434b9dc2a3d84a6889d7b5306c (patch) | |
tree | 6bf02cc671d5773276b16c565765182f92d87475 /etc/etc.alpha | |
parent | 987e748b6caf7fcf4d52e3fbd18dd3759f30a628 (diff) |
Add cyclades devices
Diffstat (limited to 'etc/etc.alpha')
-rw-r--r-- | etc/etc.alpha/MAKEDEV | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV index 8400eebc471..06667e92a01 100644 --- a/etc/etc.alpha/MAKEDEV +++ b/etc/etc.alpha/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.21 1997/07/06 18:13:34 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.22 1997/08/04 23:43:03 dgregor Exp $ # $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -103,7 +103,7 @@ all) sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 sh MAKEDEV ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 lkm sh MAKEDEV mmclock kbd mouse lpa0 lpt0 random ipl - sh MAKEDEV uk0 uk1 ss0 ss1 + sh MAKEDEV uk0 uk1 ss0 ss1 cyclades sh MAKEDEV local ;; @@ -130,6 +130,9 @@ std) mknod stderr c 10 2 ; chmod 666 stderr ;; +cyclades) + sh MAKEDEV ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7 + fd) rm -f fd/* mkdir fd > /dev/null 2>&1 @@ -260,12 +263,13 @@ ttyE*) chown uucp.wheel tty$type$unit ;; -ttyB*|ttyC*) +ttyB*|ttyC*|ttyc*) type=`expr $i : 'tty\(.\).'` unit=`expr $i : 'tty.\(.\)'` case $type in B) major=15; minor=`expr $unit \* 2` ;; C) major=26; minor=$unit ;; + c) major=38; minor=$unit ;; esac rm -f tty$type$unit cua$type$unit mknod tty$type$unit c $major $minor @@ -291,7 +295,7 @@ pty*) while [ $n -lt 16 ] do nam=$name`hex $n` - rm -rf {tty,pty}$n + rm -rf tty$n pty$n mknod tty$nam c 4 "$(( $offset + $n ))" mknod pty$nam c 5 "$(( $offset + $n ))" n="$(( $n + 1 ))" |