summaryrefslogtreecommitdiff
path: root/etc/etc.i386/MAKEDEV
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-07-06 22:01:30 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-07-06 22:01:30 +0000
commita2ab1741cfe9da37cd90eed8690a4cb7424fe53a (patch)
tree8615d47daf5fa5430b94f4fd8282555a361a3e38 /etc/etc.i386/MAKEDEV
parent083936ccf48779c0abbc2edebf92ed7eccf35591 (diff)
add utty, serial port for USB devices.
Diffstat (limited to 'etc/etc.i386/MAKEDEV')
-rw-r--r--etc/etc.i386/MAKEDEV21
1 files changed, 15 insertions, 6 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index faa64c5d4d9..0cf0c50737e 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.79 2000/04/15 17:50:45 jakob Exp $
+# $OpenBSD: MAKEDEV,v 1.80 2000/07/06 22:01:29 fgsch Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -74,6 +74,7 @@
# ulpt* Printer devices
# urio* Diamond Multimedia Rio 500
# ugen* Generic device
+# utty* Serial ports
#
# Call units:
#
@@ -215,6 +216,7 @@ usbs)
sh $this uhid0 uhid1 uhid2 uhid3
sh $this ulpt0 ulpt1
sh $this urio0
+ sh $this utty0 utty1
;;
std)
@@ -239,28 +241,28 @@ usb*)
rm -f usb$unit
mknod usb$unit c 61 $unit
chown root.wheel usb$unit
- chmod 600 usb$unit
+ chmod 660 usb$unit
;;
uhid*)
rm -f uhid$unit
mknod uhid$unit c 62 $unit
chown root.wheel uhid$unit
- chmod 666 uhid$unit
+ chmod 660 uhid$unit
;;
ulpt*)
rm -f ulpt$unit
mknod ulpt$unit c 64 $unit
chown root.wheel ulpt$unit
- chmod 600 ulpt$unit
+ chmod 660 ulpt$unit
;;
urio*)
rm -f urio$unit
mknod urio$unit c 65 $unit
chown root.wheel urio$unit
- chmod 666 urio$unit
+ chmod 660 urio$unit
;;
ugen*)
@@ -269,10 +271,17 @@ ugen*)
rm -f ugen$unit.$j
mknod ugen$unit.$j c 63 $(( $unit * 16 + $j ))
chown root.wheel ugen$unit.$j
- chmod 600 ugen$unit.$j
+ chmod 660 ugen$unit.$j
done
;;
+utty*)
+ rm -f utty$unix
+ mknod utty$unit c 66 $unit
+ chown root.wheel utty$unit
+ chmod 660 utty$unit
+ ;;
+
ttyC*)
rm -f ttyC$unit
mknod ttyC$unit c 12 $unit