diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-03-02 18:46:57 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-03-02 18:46:57 +0100 |
commit | 4fac6c16e0f60c13480eaa249c0a7a32cb211a8e (patch) | |
tree | e0643249aa39ec43866dc4da825013cf8eec17b5 | |
parent | c61aab4fd600ed65636a981d30540c7a98ee56fd (diff) | |
download | mkinitcpio-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
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |