2011/7/15 Giuseppe Iuculano <iucul...@debian.org>: > I just uploaded dkms 2.2.0.1-1 which already contains kfreebsd support. > Could you check if this is ok?
Almost. There are two bits missing. First is the depmod command (it is Linux-specific). Second is a duplicate warning message. See attached patch, it is tested and known to work properly. Thanks! -- Robert Millan
=== modified file 'dkms' --- dkms 2011-07-15 12:39:30 +0000 +++ dkms 2011-07-15 12:47:07 +0000 @@ -233,6 +233,9 @@ do_depmod() { # $1 = kernel version + if [ "${uname_s}" != "Linux" ] ; then + return + fi if [[ -f /boot/System.map-$1 ]]; then /sbin/depmod -a "$1" -F "/boot/System.map-$1" else === modified file 'kernel_postinst.d_dkms' --- kernel_postinst.d_dkms 2011-07-15 12:39:30 +0000 +++ kernel_postinst.d_dkms 2011-07-15 12:46:39 +0000 @@ -39,11 +39,6 @@ /usr/lib/dkms/dkms_autoinstaller start $inst_kern >&2 fi -if [ ! -e /lib/modules/$inst_kern/build/include ] ; then - echo "dkms: WARNING: linux headers are missing, which may explain the above failures." >&2 - echo " please install the linux-headers-$inst_kern package to fix this." >&2 -fi - if ! _check_kernel_dir $inst_kern ; then echo "dkms: WARNING: $kernel headers are missing, which may explain the above failures." >&2 echo " please install the $header_pkg package to fix this." >&2