shithub: riscv

ref: 182d82fdfe785858d5ef8ec0a344b2453b2a37de
dir: /rc/bin/usbstart/

View raw version
#!/bin/rc
# usbstart - start appropriate usb flavour
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(test -f /srv/usb)
		mount -a /srv/usb /dev
	if not
		usb/usbd
}
exit ''