Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Make /dev/usb readable to all; it is only used to report...



details:   https://anonhg.NetBSD.org/src/rev/c079bc431d6d
branches:  trunk
changeset: 580587:c079bc431d6d
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Apr 30 16:26:06 2005 +0000

description:
Make /dev/usb readable to all; it is only used to report USB events.

diffstat:

 etc/MAKEDEV.tmpl |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (32 lines):

diff -r 00bc0aa28047 -r c079bc431d6d etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Sat Apr 30 15:56:32 2005 +0000
+++ b/etc/MAKEDEV.tmpl  Sat Apr 30 16:26:06 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.41 2005/04/01 21:07:01 peter Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.42 2005/04/30 16:26:06 augustss Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -497,15 +497,14 @@
        fi
        ;;
 
+usb)
+       mkdev usb c %usb_chr% 255 444
+       ;;
+
 usb*)
        unit=${i#usb}
-       if [ "$unit" = "" ]; then
-               unit=255
-               usb=usb
-       else
-               usb=usb$unit
-       fi
-       mkdev $usb c %usb_chr% $unit
+       usb=usb$unit
+       mkdev usb$unit c %usb_chr% $unit
        ;;
 
 uhid*)



Home | Main Index | Thread Index | Old Index