[oe-commits] org.oe.dev packages/modutils/modutils-collateral.bb: Modprobe has changed between 2.4 and 2.6 kernels.

ifaistos commit openembedded-commits at lists.openembedded.org
Mon Mar 5 18:59:11 UTC 2007


packages/modutils/modutils-collateral.bb: Modprobe has changed between 2.4 and 2.6 kernels. 
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

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 6063cf44a481655f8a16b617ebc5c4c29b541718
ViewMTN: http://monotone.openembedded.org/revision.psp?id=6063cf44a481655f8a16b617ebc5c4c29b541718
Files:
1
packages/modutils/modutils-collateral.bb
Diffs:

#
# mt diff -r413b439777e0e1e5b8d6289c19d33e8f4f43dd22 -r6063cf44a481655f8a16b617ebc5c4c29b541718
#
# 
# 
# patch "packages/modutils/modutils-collateral.bb"
#  from [75fcefa4acf970ed059e4ce992c36376e37d14a5]
#    to [17cf95690d7b7c0f0edf15a3961c4085df535d78]
# 
============================================================
--- packages/modutils/modutils-collateral.bb	75fcefa4acf970ed059e4ce992c36376e37d14a5
+++ packages/modutils/modutils-collateral.bb	17cf95690d7b7c0f0edf15a3961c4085df535d78
@@ -1,6 +1,6 @@ DESCRIPTION = "modutils configuration fi
 SECTION = "base"
 DESCRIPTION = "modutils configuration files"
-PR = "r2"
+PR = "r3"
 LICENSE = "MIT"
 
 SRC_URI = "file://modules \
@@ -12,5 +12,10 @@ do_install () {
 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
+
 }






More information about the Openembedded-commits mailing list