shithub: riscv

Download patch

ref: 4dcefa6941fe927195d853acb7a19fb82e5bca70
parent: 74a7efc3a28c545afe2a8de9662348cdca68f052
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri Apr 15 05:06:27 EDT 2011

mount /srv/usb when it is there

--- a/rc/bin/usbstart
+++ b/rc/bin/usbstart
@@ -3,22 +3,10 @@
 if(test -r '#u'/usb) {
 	if(! test -r /dev/usb)
 		bind -a '#u' /dev
-
 	# /boot/boot may have started usbd, which starts all usb drivers
-	if (! ps | grep -s ' usbd$')
+	if(test -f /srv/usb)
+		mount -a /srv/usb /dev
+	if not
 		usb/usbd
-}
-if not if(test -r '#U'/usb0) {
-	if(! test -r /dev/usb0)
-		bind -a '#U' /dev
-
-	# /boot/boot may have started usbd, usb/kb or usb/disk
-	if (! ps | grep -s ' usbd$')
-		usb/usbd
-	usb/usbmouse -a 2
-	if (! ps | grep -s ' kb$')
-		usb/kb -k
-	usb/usbaudio -s usbaudio.$sysname -V
-	# usb/print
 }
 exit ''