packages/modutils/modutils-collateral.bb: Modprobe has changed between 2.4 and 2...
authorStelios Koroneos <skoroneos@digital-opsis.com>
Mon, 5 Mar 2007 18:55:05 +0000 (18:55 +0000)
committerStelios Koroneos <skoroneos@digital-opsis.com>
Mon, 5 Mar 2007 18:55:05 +0000 (18:55 +0000)
The information in /etc/modutils and /etc/modules.conf is not read under 2.6.
2.6 uses a /etc/modprobe.d directory, and it does not need a
"/etc/modprobe.conf" file; it reads all the appropriate *.conf files and
compiles the information at boot time.
This commit closes bug #808

packages/modutils/modutils-collateral.bb

index 5c50202..6d010a5 100644 (file)
@@ -1,6 +1,6 @@
 SECTION = "base"
 DESCRIPTION = "modutils configuration files"
-PR = "r2"
+PR = "r3"
 LICENSE = "MIT"
 
 SRC_URI = "file://modules \
@@ -12,5 +12,10 @@ do_compile () {
 do_install () {
        install -d ${D}${sysconfdir}
        install -m 0644 ${WORKDIR}/modules ${D}${sysconfdir}/modules
-       install -m 0644 ${WORKDIR}/modules.conf ${D}${sysconfdir}/modules.conf
+        if [ ${MAJOR_KERNEL_VERSION}=2.6 ]; then
+        install -d ${D}${sysconfdir}/modprobe.d         
+        else
+        install -m 0644 ${WORKDIR}/modules.conf ${D}${sysconfdir}/modules.conf
+        fi
+
 }