Browse Source

fix tty0?, fd, and skip lp/lptwo for now

OPENBSD_2_0
deraadt 29 years ago
parent
commit
ee7261a725
1 changed files with 16 additions and 4 deletions
  1. +16
    -4
      src/etc/etc.mvme68k/MAKEDEV

+ 16
- 4
src/etc/etc.mvme68k/MAKEDEV View File

@ -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
;;


Loading…
Cancel
Save