Browse Source

Plan 9 from Bell Labs 2008-08-29

David du Colombier 12 years ago
parent
commit
da45ffc023
5 changed files with 16 additions and 4 deletions
  1. 4 0
      386/bin/usb/probe
  2. 3 2
      dist/replica/_plan9.db
  3. 2 2
      dist/replica/plan9.db
  4. 3 0
      dist/replica/plan9.log
  5. 4 0
      sys/src/cmd/usb/misc/probe

+ 4 - 0
386/bin/usb/probe

@@ -1,6 +1,10 @@
 #!/bin/rc
 # list all usb devices
 rfork e
+if(! test -r '#U'/usb0)
+	exit no-usb
+if(! test -r /dev/usb0)
+	bind -a '#U' /dev
 for (id in /dev/usb[0-9]*/[0-9]*/status)
 	if (test -e $id) {
 		echo $id | sed 's;/status$;:	;' | tr -d '\12'

+ 3 - 2
dist/replica/_plan9.db

@@ -493,7 +493,7 @@
 386/bin/usb/disk - 775 sys sys 1210393033 188288
 386/bin/usb/kb - 775 sys sys 1219864927 133609
 386/bin/usb/print - 775 sys sys 1203567409 314
-386/bin/usb/probe - 775 sys sys 1203567409 173
+386/bin/usb/probe - 775 sys sys 1219968814 253
 386/bin/usb/usbaudio - 775 sys sys 1210393040 190049
 386/bin/usb/usbd - 775 sys sys 1217475989 132446
 386/bin/usb/usbmouse - 775 sys sys 1210393045 129634
@@ -14311,7 +14311,7 @@ sys/src/cmd/usb/lib/util.c - 664 sys sys 1203568227 533
 sys/src/cmd/usb/misc - 20000000775 sys sys 1203553003 0
 sys/src/cmd/usb/misc/mkfile - 664 sys sys 1203553011 356
 sys/src/cmd/usb/misc/print - 775 sys sys 1167253831 314
-sys/src/cmd/usb/misc/probe - 775 sys sys 1167253836 173
+sys/src/cmd/usb/misc/probe - 775 sys sys 1219968817 253
 sys/src/cmd/usb/misc/usbmouse.c - 664 sys sys 1204006880 4826
 sys/src/cmd/usb/mkfile - 664 sys sys 1203553384 366
 sys/src/cmd/usb/usbd - 20000000775 sys sys 1196687841 0
@@ -15884,3 +15884,4 @@ usr/glenda/lib/profile - 664 glenda glenda 1105128663 890
 usr/glenda/readme.acme - 664 glenda glenda 1019860628 4753
 usr/glenda/readme.rio - 664 glenda glenda 1019860628 6370
 usr/glenda/tmp - 20000000775 glenda glenda 1020896385 0
+386/bin/usb/probe - 775 sys sys 1219979667 253

+ 2 - 2
dist/replica/plan9.db

@@ -493,7 +493,7 @@
 386/bin/usb/disk - 775 sys sys 1210393033 188288
 386/bin/usb/kb - 775 sys sys 1219864927 133609
 386/bin/usb/print - 775 sys sys 1203567409 314
-386/bin/usb/probe - 775 sys sys 1203567409 173
+386/bin/usb/probe - 775 sys sys 1219979667 253
 386/bin/usb/usbaudio - 775 sys sys 1210393040 190049
 386/bin/usb/usbd - 775 sys sys 1217475989 132446
 386/bin/usb/usbmouse - 775 sys sys 1210393045 129634
@@ -14311,7 +14311,7 @@ sys/src/cmd/usb/lib/util.c - 664 sys sys 1203568227 533
 sys/src/cmd/usb/misc - 20000000775 sys sys 1203553003 0
 sys/src/cmd/usb/misc/mkfile - 664 sys sys 1203553011 356
 sys/src/cmd/usb/misc/print - 775 sys sys 1167253831 314
-sys/src/cmd/usb/misc/probe - 775 sys sys 1167253836 173
+sys/src/cmd/usb/misc/probe - 775 sys sys 1219968817 253
 sys/src/cmd/usb/misc/usbmouse.c - 664 sys sys 1204006880 4826
 sys/src/cmd/usb/mkfile - 664 sys sys 1203553384 366
 sys/src/cmd/usb/usbd - 20000000775 sys sys 1196687841 0

+ 3 - 0
dist/replica/plan9.log

@@ -36081,3 +36081,6 @@
 1219807805 0 c 386/lib/ape/libap.a - 664 sys sys 1219807805 823890
 1219858204 0 c sys/src/cmd/usb/kb/kb.c - 664 sys sys 1219857612 13513
 1219865404 0 c 386/bin/usb/kb - 775 sys sys 1219864927 133609
+1219969804 0 c 386/bin/usb/probe - 775 sys sys 1219968814 253
+1219969804 1 c sys/src/cmd/usb/misc/probe - 775 sys sys 1219968817 253
+1219980604 0 c 386/bin/usb/probe - 775 sys sys 1219979667 253

+ 4 - 0
sys/src/cmd/usb/misc/probe

@@ -1,6 +1,10 @@
 #!/bin/rc
 # list all usb devices
 rfork e
+if(! test -r '#U'/usb0)
+	exit no-usb
+if(! test -r /dev/usb0)
+	bind -a '#U' /dev
 for (id in /dev/usb[0-9]*/[0-9]*/status)
 	if (test -e $id) {
 		echo $id | sed 's;/status$;:	;' | tr -d '\12'