diff options
author | Jonathan M. Bresler <jmb@FreeBSD.org> | 2000-04-02 06:28:40 +0000 |
---|---|---|
committer | Jonathan M. Bresler <jmb@FreeBSD.org> | 2000-04-02 06:28:40 +0000 |
commit | 0fe00f48d08b18884bed08621b867317e3bcc6ea (patch) | |
tree | 82a0a1c8fe171261835140f1bdc9fd1d64700e6c /usr.sbin/usbd | |
parent | f018cfad89172e898256d405a11565d4320befa5 (diff) | |
download | src-test2-0fe00f48d08b18884bed08621b867317e3bcc6ea.tar.gz src-test2-0fe00f48d08b18884bed08621b867317e3bcc6ea.zip |
Notes
Diffstat (limited to 'usr.sbin/usbd')
-rw-r--r-- | usr.sbin/usbd/usbd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index 09190c9154f2..b866eca63ed6 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -896,6 +896,14 @@ main(int argc, char **argv) int itimeout = TIMEOUT; /* timeout for select */ struct timeval tv; + if (modfind(USB_OHCI) < 0 && modfind(USB_UHCI) < 0) { + if (kldload(USB_KLD) < 0 || + (modfind(USB_OHCI) < 0 && modfind(USB_UHCI) < 0)) { + perror(USB_KLD ": Kernel module not available"); + return 1; + } + } + while ((ch = getopt(argc, argv, "c:def:nt:v")) != -1) { switch(ch) { case 'c': |