summaryrefslogtreecommitdiff
path: root/packages/module-init-tools/module-init-tools_3.1-pre5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/module-init-tools/module-init-tools_3.1-pre5.bb')
-rw-r--r--packages/module-init-tools/module-init-tools_3.1-pre5.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/module-init-tools/module-init-tools_3.1-pre5.bb b/packages/module-init-tools/module-init-tools_3.1-pre5.bb
index 3869f3a38f..1fc882ac56 100644
--- a/packages/module-init-tools/module-init-tools_3.1-pre5.bb
+++ b/packages/module-init-tools/module-init-tools_3.1-pre5.bb
@@ -3,7 +3,7 @@ SECTION = "base"
DESCRIPTION = "This package contains a set of programs for loading, inserting, and \
removing kernel modules for Linux (versions 2.5.48 and above). It serves \
the same function that the modutils package serves for Linux 2.4."
-PR = "r4"
+PR = "r5"
PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod"
RDEPENDS_${PN} += "module-init-tools-depmod"
@@ -45,3 +45,12 @@ bn=`basename $f`
done
}
+pkg_postinst_module-init-tools-depmod() {
+#!/bin/sh
+update-alternatives --install /sbin/depmod depmod.26 /sbin/depmod.26 20
+}
+
+pkg_prerm_module-init-tools() {
+#!/bin/sh
+update-alternatives --remove depmod /sbin/debmod.26
+}