summaryrefslogtreecommitdiff
path: root/meta/packages
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/modutils/modutils-collateral.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/packages/modutils/modutils-collateral.bb b/meta/packages/modutils/modutils-collateral.bb
index 5c502021f..6d010a575 100644
--- a/meta/packages/modutils/modutils-collateral.bb
+++ b/meta/packages/modutils/modutils-collateral.bb
@@ -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
+
}