From b22d49ea434d3cd9f8c97735bcdb9b7df6796129 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Mar 2008 06:38:09 +0000 Subject: if modules.d is empty, dont whine (Portage version: 2.2_pre2) --- sys-apps/module-init-tools/files/update-modules-3.4.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys-apps/module-init-tools') diff --git a/sys-apps/module-init-tools/files/update-modules-3.4.sh b/sys-apps/module-init-tools/files/update-modules-3.4.sh index b41b579a899f..34b7950fe6fc 100755 --- a/sys-apps/module-init-tools/files/update-modules-3.4.sh +++ b/sys-apps/module-init-tools/files/update-modules-3.4.sh @@ -52,7 +52,7 @@ while [ -n "$1" ] ; do -f|--force|force) FORCE="true";; -v|--verbose) ((VERBOSE+=1));; -d|--debug) ((DEBUG+=1));; - -V|--version) exec echo "${argv0}: $Revision: 1.1 $ $Date: 2008/03/19 02:09:10 $";; + -V|--version) exec echo "${argv0}: $Revision: 1.2 $ $Date: 2008/03/19 06:38:09 $";; -h|--help) cat <<-EOF Usage: update-modules [options] @@ -308,6 +308,7 @@ else case ${f##*/} in aliases|i386) continue;; esac + [ -e "${f}" ] || continue if [ ! -e "./etc/modprobe.d/${f##*/}" ] ; then ewarn "Please file a bug about ${f#.}: it needs an /etc/modprobe.d/${f##*/}" fi -- cgit v1.2.3-65-gdbad