summaryrefslogtreecommitdiff
path: root/dh_installmodules
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installmodules')
-rwxr-xr-xdh_installmodules5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh_installmodules b/dh_installmodules
index f3e8cc8..6b996a5 100755
--- a/dh_installmodules
+++ b/dh_installmodules
@@ -104,6 +104,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
if (! $dh{NOSCRIPTS}) {
+ if ($modutils_file) {
+ autoscript($package,"postinst","postinst-update-modules");
+ autoscript($package,"postrm","postrm-update-modules");
+ }
+
foreach my $kvers (find_kernel_modules("$tmp/lib/modules")) {
autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/g");
autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/g");