diff options
author | Rene Wagner <rw@handhelds.org> | 2005-08-21 00:11:25 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-21 00:11:25 +0000 |
commit | 7ab6bafabc5d7567f81cf1165b500dbb4227c409 (patch) | |
tree | b6a540c86151eb9cebbddc608628d54416a7742f /classes/module.bbclass | |
parent | 1a7df4494bc9678334ed1ba386d4083777c41aed (diff) |
module.bbclass: run depmod/update-modules in postinst/postrm
Diffstat (limited to 'classes/module.bbclass')
-rw-r--r-- | classes/module.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/module.bbclass b/classes/module.bbclass index 4da3f5f30b..8a13f1f858 100644 --- a/classes/module.bbclass +++ b/classes/module.bbclass @@ -34,6 +34,18 @@ module_do_install() { oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" CC="${KERNEL_CC}" LD="${KERNEL_LD}" modules_install } +pkg_postinst_append () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -A + update-modules || true +} + +pkg_postrm_append () { + update-modules || true +} + EXPORT_FUNCTIONS do_compile do_install FILES_${PN} = "/etc /lib/modules" |