From a15c6e2cca5b50a45c653847bf361c6131dc47d0 Mon Sep 17 00:00:00 2001 From: drahn <> Date: Tue, 6 Nov 2001 23:46:05 +0000 Subject: [PATCH] Add USB scanner device node to macppc and i386, both of these had the uscanner compiled into the kernel, but no device node, or even entry in the character device switch table. ok todd@ --- src/etc/etc.i386/MAKEDEV | 11 +++++++++-- src/etc/etc.macppc/MAKEDEV | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/etc/etc.i386/MAKEDEV b/src/etc/etc.i386/MAKEDEV index 3fdbb959..3e6fd363 100644 --- a/src/etc/etc.i386/MAKEDEV +++ b/src/etc/etc.i386/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.104 2001/10/04 22:38:13 gluk Exp $ +# $OpenBSD: MAKEDEV,v 1.105 2001/11/06 23:46:05 drahn Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -221,7 +221,7 @@ usbs) sh $this usb0 usb1 sh $this uhid0 uhid1 uhid2 uhid3 sh $this ulpt0 ulpt1 - sh $this urio0 + sh $this urio0 uscanner0 sh $this utty0 utty1 ;; @@ -282,6 +282,13 @@ urio*) chmod 660 urio$unit ;; +uscanner*) + rm -f uscanner$unit + mknod uscanner$unit c 77 $unit + chown root.wheel uscanner$unit + chmod 660 uscanner$unit + ;; + ugen*) for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 do diff --git a/src/etc/etc.macppc/MAKEDEV b/src/etc/etc.macppc/MAKEDEV index 0514b3ba..e317f44d 100644 --- a/src/etc/etc.macppc/MAKEDEV +++ b/src/etc/etc.macppc/MAKEDEV @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: MAKEDEV,v 1.2 2001/10/03 14:50:38 drahn Exp $ +# $OpenBSD: MAKEDEV,v 1.3 2001/11/06 23:46:05 drahn Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -212,7 +212,7 @@ usbs) sh $this usb0 usb1 sh $this uhid0 uhid1 uhid2 uhid3 sh $this ulpt0 ulpt1 - sh $this urio0 + sh $this urio0 uscanner0 sh $this utty0 utty1 ;; @@ -513,6 +513,13 @@ urio*) chmod 660 urio$unit ;; +uscanner*) + rm -f uscanner$unit + mknod uscanner$unit c 74 $unit + chown root.wheel uscanner$unit + chmod 660 uscanner$unit + ;; + utty*) rm -f utty$unit mknod utty$unit c 66 $unit