dhcpcd could be anywhere, so allow this.

This commit is contained in:
Roy Marples 2008-01-10 23:23:39 +00:00
parent 2d95c9a756
commit acbaacb2c1
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,7 @@
dhcpcd_depend() {
after interface
program start /sbin/dhcpcd /usr/local/sbin/dhcpcd
program start dhcpcd
provide dhcp
# We prefer dhcpcd over the others

View File

@ -329,9 +329,13 @@ _load_modules() {
if [ -n "$1" ]; then
x=
for x; do
[ -x "${x}" ] && break
case "${x}" in
/*) [ -x "${x}" ] && break;;
*) type "${x}" >/dev/null 2>&1 && break;;
esac
unset x
done
[ -x "${x}" ] || continue
[ -n "${x}" ] || continue
fi
eval provides=\$module_${i}_provide