From: Sascha Wildner Date: Tue, 18 Mar 2014 18:21:31 +0000 (+0100) Subject: Try to start usbd(8) only if it actually exists. X-Git-Tag: v3.9.0~283 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/6ac0b84876c52f35eb16eb87de7b25a3e89db588 Try to start usbd(8) only if it actually exists. It is specific to the old USB stack so we can remove the rc script once we don't offer it anymore. For now, just check if it is there before starting. --- diff --git a/etc/rc.d/usbd b/etc/rc.d/usbd index eba1671052..75b0bd8f86 100644 --- a/etc/rc.d/usbd +++ b/etc/rc.d/usbd @@ -1,7 +1,6 @@ #!/bin/sh # # $FreeBSD: src/etc/rc.d/usbd,v 1.1 2002/06/13 22:14:36 gordon Exp $ -# $DragonFly: src/etc/rc.d/usbd,v 1.3 2005/11/19 21:47:32 swildner Exp $ # # PROVIDE: usbd @@ -14,5 +13,7 @@ name="usbd" rcvar=`set_rcvar` command="/usr/sbin/${name}" -load_rc_config $name -run_rc_command "$1" +if [ -x $command ]; then + load_rc_config $name + run_rc_command "$1" +fi