usbstart 524 B

123456789101112131415161718192021222324
  1. #!/bin/rc
  2. # usbstart - start appropriate usb flavour
  3. if(test -r '#u'/usb) {
  4. if(! test -r /dev/usb)
  5. bind -a '#u' /dev
  6. # /boot/boot may have started usbd, which starts all usb drivers
  7. if (! ps | grep -s ' usbd$')
  8. usb/usbd
  9. }
  10. if not if(test -r '#U'/usb0) {
  11. if(! test -r /dev/usb0)
  12. bind -a '#U' /dev
  13. # /boot/boot may have started usbd, usb/kb or usb/disk
  14. if (! ps | grep -s ' usbd$')
  15. usb/usbd
  16. usb/usbmouse -a 2
  17. if (! ps | grep -s ' kb$')
  18. usb/kb -k
  19. usb/usbaudio -s usbaudio.$sysname -V
  20. # usb/print
  21. }
  22. exit ''