summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-02 18:46:57 +0100
committerAaron Griffin <aaron@archlinux.org>2007-03-02 18:46:57 +0100
commit4fac6c16e0f60c13480eaa249c0a7a32cb211a8e (patch)
treee0643249aa39ec43866dc4da825013cf8eec17b5 /functions
parentc61aab4fd600ed65636a981d30540c7a98ee56fd (diff)
downloadmkinitcpio-4fac6c16e0f60c13480eaa249c0a7a32cb211a8e.tar.gz
mkinitcpio-4fac6c16e0f60c13480eaa249c0a7a32cb211a8e.tar.xz
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
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 2 insertions, 2 deletions
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"