From acbaacb2c1dd96d7e084c1b8bd90ea730a422e6e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 10 Jan 2008 23:23:39 +0000 Subject: dhcpcd could be anywhere, so allow this. --- sh/net.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/net.sh b/sh/net.sh index ab648a07..fc440952 100755 --- a/sh/net.sh +++ b/sh/net.sh @@ -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 -- cgit v1.2.3