set a sane PATH for the install scriptlet

Hopefully this prevents people from shooting themselves in the face
when they, or something else, decides that /sbin doesn't belong here.
This commit is contained in:
Dave Reisner 2012-06-17 00:42:06 +00:00
parent da0ccee110
commit 4b5cf30418
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
KERNEL_NAME= KERNEL_NAME=
KERNEL_VERSION=3.4.2-2-ARCH KERNEL_VERSION=3.4.2-2-ARCH
# set a sane PATH to ensure that critical utils like depmod will be found
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
post_install () { post_install () {
# updating module dependencies # updating module dependencies
echo ">>> Updating module dependencies. Please wait ..." echo ">>> Updating module dependencies. Please wait ..."