[Pkg-dkms-commits] [SCM] Maintenance of the dkms package branch, upstream-repo/master, updated. 157d3664c7f7e4d3ae389563456561a32a9ccc8a
Mario Limonciello
Mario_Limonciello at Dell.com
Sat Jan 31 12:45:15 UTC 2009
The following commit has been merged in the upstream-repo/master branch:
commit 4ad3c005af3254bf45e536794e7f39f0c78d0a12
Author: Mario Limonciello <Mario_Limonciello at Dell.com>
Date: Thu Jan 29 11:34:26 2009 -0600
add workaround for SLES11 issue where they require allow_unsupported_modules in a modprobe.conf file
diff --git a/dkms.spec b/dkms.spec
index 7ba53a6..5c72ee1 100644
--- a/dkms.spec
+++ b/dkms.spec
@@ -117,6 +117,16 @@ rm -rf $RPM_BUILD_ROOT
# enable on initial install
[ $1 -lt 2 ] && /sbin/chkconfig dkms_autoinstaller on ||:
+#on sles11, we'll have this file and need to set this option
+#so that we can use DKMS modules
+if [ -f /etc/modprobe.conf.local ]; then
+ if grep ^allow_unsupported_modules /etc/modprobe.conf.local >/dev/null; then
+ sed -e 's/^allow_unsupported_modules.*/allow_unsupported_modules=1/' /etc/modprobe.conf.local
+ else
+ echo "allow_unsupported_modules=1" >> /etc/modprobe.conf.local
+ fi
+fi
+
%preun
# remove on uninstall
[ $1 -lt 1 ] && /sbin/chkconfig dkms_autoinstaller off ||:
--
Maintenance of the dkms package
More information about the Pkg-dkms-commits
mailing list