Browse Source

allow cmdline creation of ttya-d on sparc

OPENBSD_2_3
todd 27 years ago
parent
commit
fce3be5d44
1 changed files with 16 additions and 5 deletions
  1. +16
    -5
      src/etc/etc.sparc/MAKEDEV

+ 16
- 5
src/etc/etc.sparc/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: MAKEDEV,v 1.36 1998/02/23 05:29:17 jason Exp $
# $OpenBSD: MAKEDEV,v 1.37 1998/03/02 05:12:20 todd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -197,10 +197,7 @@ std)
mknod stdin c 24 0 ; chmod 666 stdin
mknod stdout c 24 1 ; chmod 666 stdout
mknod stderr c 24 2 ; chmod 666 stderr
mknod ttya c 12 0
mknod ttyb c 12 1
mknod ttyc c 12 4
mknod ttyd c 12 5
sh ${this} ttya ttyb ttyc ttyd
mknod fb c 22 0 ; chmod 666 fb
mknod mouse c 13 0 ; chmod 666 mouse
mknod kbd c 29 0 ; chmod 666 kbd
@ -471,6 +468,20 @@ lkm)
chmod 640 lkm
;;
tty[a-z])
unit=`expr $i : 'tty\([a-z]\)'`
rm -f tty$unit
case $unit in
a) n=0 ;;
b) n=1 ;;
c) n=4 ;;
d) n=5 ;;
*) echo unknown tty device $i ;;
esac
mknod tty$unit c 12 $n
chown uucp.wheel tty$unit
;;
pty*)
case $unit in
0) offset=0 name=p;;


Loading…
Cancel
Save