From 4fac6c16e0f60c13480eaa249c0a7a32cb211a8e Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 2 Mar 2007 17:46:57 +0000 Subject: Absolute paths for modinfo and modprobe, as /sbin may not be in everyone's path git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@197 880c04e9-e011-0410-abf7-b926e227c9cd --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions b/functions index df04955..1464705 100644 --- a/functions +++ b/functions @@ -2,7 +2,7 @@ auto_modules () { aliases=$(find /sys/devices/ -name modalias -exec cat {} \;) - mods=$(modprobe --set-version ${KERNELVERSION} --show-depends -a \ + mods=$(/sbin/modprobe --set-version ${KERNELVERSION} --show-depends -a \ $aliases 2>/dev/null | sed 's|insmod \(.*\)|\1|' | grep ${@} | sort -u) echo "${mods}" @@ -136,7 +136,7 @@ add_module () found=0 for path in $(find "${MODULEDIR}" -type f -name "${fil}.ko"); do - for mod in $(modinfo -F depends "${path}" | tr ',' ' '); do + for mod in $(/sbin/modinfo -F depends "${path}" | tr ',' ' '); do if [ "x${mod}" != "x" ]; then add_module "${mod}" HAS_MODULES="y" -- cgit v1.2.3-24-g4f1b