Permalink
Browse files

Fix the Linux build/ directory from Robert's patch

  • Loading branch information...
superm1 committed Jul 12, 2011
1 parent 3139e93 commit d2333dc2c80242386c0b0648d822054a2ac1e97c
Showing with 6 additions and 6 deletions.
  1. +2 −2 dkms
  2. +2 −2 dkms_common.postinst
  3. +2 −2 kernel_postinst.d_dkms
View
4 dkms
@@ -46,7 +46,7 @@ uname_s=$(uname -s)
function _get_kernel_dir() {
KVER=$1
case ${uname_s} in
Linux) DIR="/lib/modules/$KVER" ;;
Linux) DIR="/lib/modules/$KVER/build" ;;
GNU/kFreeBSD) DIR="/usr/src/kfreebsd-headers-$KVER/sys" ;;
esac
echo $DIR
@@ -55,7 +55,7 @@ function _get_kernel_dir() {
function _check_kernel_dir() {
DIR=$(_get_kernel_dir $1)
case ${uname_s} in
Linux) test -e $DIR/build/include ;;
Linux) test -e $DIR/include ;;
GNU/kFreeBSD) test -e $DIR/kern && test -e $DIR/conf/kmod.mk ;;
*) return 1 ;;
esac
View
@@ -11,7 +11,7 @@ uname_s=$(uname -s)
_get_kernel_dir() {
KVER=$1
case ${uname_s} in
Linux) DIR="/lib/modules/$KVER" ;;
Linux) DIR="/lib/modules/$KVER/build" ;;
GNU/kFreeBSD) DIR="/usr/src/kfreebsd-headers-$KVER/sys" ;;
esac
echo $DIR
@@ -20,7 +20,7 @@ _get_kernel_dir() {
_check_kernel_dir() {
DIR=$(_get_kernel_dir $1)
case ${uname_s} in
Linux) test -e $DIR/build/include ;;
Linux) test -e $DIR/include ;;
GNU/kFreeBSD) test -e $DIR/kern && test -e $DIR/conf/kmod.mk ;;
*) return 1 ;;
esac
View
@@ -8,7 +8,7 @@ uname_s=$(uname -s)
_get_kernel_dir() {
KVER=$1
case ${uname_s} in
Linux) DIR="/lib/modules/$KVER" ;;
Linux) DIR="/lib/modules/$KVER/build" ;;
GNU/kFreeBSD) DIR="/usr/src/kfreebsd-headers-$KVER/sys" ;;
esac
echo $DIR
@@ -17,7 +17,7 @@ _get_kernel_dir() {
_check_kernel_dir() {
DIR=$(_get_kernel_dir $1)
case ${uname_s} in
Linux) test -e $DIR/build/include ;;
Linux) test -e $DIR/include ;;
GNU/kFreeBSD) test -e $DIR/kern && test -e $DIR/conf/kmod.mk ;;
*) return 1 ;;
esac

0 comments on commit d2333dc

Please sign in to comment.