|
|
@ -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 ))" |
|
|
|