Try to start usbd(8) only if it actually exists.
[dragonfly.git] / etc / rc.d / usbd
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/usbd,v 1.1 2002/06/13 22:14:36 gordon Exp $
4 #
5
6 # PROVIDE: usbd
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
9
10 . /etc/rc.subr
11
12 name="usbd"
13 rcvar=`set_rcvar`
14 command="/usr/sbin/${name}"
15
16 if [ -x $command ]; then
17         load_rc_config $name
18         run_rc_command "$1"
19 fi