Browse Source

Add cyclades devices

OPENBSD_2_2
dgregor 27 years ago
parent
commit
d32e23a51d
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      src/etc/etc.alpha/MAKEDEV

+ 8
- 4
src/etc/etc.alpha/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/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 $ # $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. # 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 bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3
sh MAKEDEV ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 lkm sh MAKEDEV ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 lkm
sh MAKEDEV mmclock kbd mouse lpa0 lpt0 random ipl 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 sh MAKEDEV local
;; ;;
@ -130,6 +130,9 @@ std)
mknod stderr c 10 2 ; chmod 666 stderr mknod stderr c 10 2 ; chmod 666 stderr
;; ;;
cyclades)
sh MAKEDEV ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7
fd) fd)
rm -f fd/* rm -f fd/*
mkdir fd > /dev/null 2>&1 mkdir fd > /dev/null 2>&1
@ -260,12 +263,13 @@ ttyE*)
chown uucp.wheel tty$type$unit chown uucp.wheel tty$type$unit
;; ;;
ttyB*|ttyC*)
ttyB*|ttyC*|ttyc*)
type=`expr $i : 'tty\(.\).'` type=`expr $i : 'tty\(.\).'`
unit=`expr $i : 'tty.\(.\)'` unit=`expr $i : 'tty.\(.\)'`
case $type in case $type in
B) major=15; minor=`expr $unit \* 2` ;; B) major=15; minor=`expr $unit \* 2` ;;
C) major=26; minor=$unit ;; C) major=26; minor=$unit ;;
c) major=38; minor=$unit ;;
esac esac
rm -f tty$type$unit cua$type$unit rm -f tty$type$unit cua$type$unit
mknod tty$type$unit c $major $minor mknod tty$type$unit c $major $minor
@ -291,7 +295,7 @@ pty*)
while [ $n -lt 16 ] while [ $n -lt 16 ]
do do
nam=$name`hex $n` nam=$name`hex $n`
rm -rf {tty,pty}$n
rm -rf tty$n pty$n
mknod tty$nam c 4 "$(( $offset + $n ))" mknod tty$nam c 4 "$(( $offset + $n ))"
mknod pty$nam c 5 "$(( $offset + $n ))" mknod pty$nam c 5 "$(( $offset + $n ))"
n="$(( $n + 1 ))" n="$(( $n + 1 ))"


Loading…
Cancel
Save