diff --git a/hooks/dapper/80-install-modules b/hooks/dapper/80-install-modules index 76380fe..0e058a9 100755 --- a/hooks/dapper/80-install-modules +++ b/hooks/dapper/80-install-modules @@ -41,7 +41,7 @@ linux_modules_package="linux-modules-$(uname -r)" # Attempt to install that package. This will either work on an Etch # system, or fail on a Sarge/custom kernel. # -if chroot ${prefix} apt-cache policy ${linux_modules_package} 2>/dev/null; then +if chroot ${prefix} /usr/bin/apt-cache policy ${linux_modules_package} 2>/dev/null; then # # If it worked then we can install the package. diff --git a/hooks/debian/80-install-modules b/hooks/debian/80-install-modules index 71e8ce1..c8e9083 100755 --- a/hooks/debian/80-install-modules +++ b/hooks/debian/80-install-modules @@ -41,7 +41,7 @@ linux_modules_package="linux-modules-$(uname -r)" # Attempt to install that package. This will either work on an Etch # system, or fail on a Sarge/custom kernel. # -if chroot ${prefix} apt-cache policy ${linux_modules_package} 2>/dev/null; then +if chroot ${prefix} /usr/bin/apt-cache policy ${linux_modules_package} 2>/dev/null; then # # If it worked then we can install the package. diff --git a/hooks/edgy/80-install-modules b/hooks/edgy/80-install-modules index 76380fe..0e058a9 100755 --- a/hooks/edgy/80-install-modules +++ b/hooks/edgy/80-install-modules @@ -41,7 +41,7 @@ linux_modules_package="linux-modules-$(uname -r)" # Attempt to install that package. This will either work on an Etch # system, or fail on a Sarge/custom kernel. # -if chroot ${prefix} apt-cache policy ${linux_modules_package} 2>/dev/null; then +if chroot ${prefix} /usr/bin/apt-cache policy ${linux_modules_package} 2>/dev/null; then # # If it worked then we can install the package.