summaryrefslogtreecommitdiff
path: root/dh_installmodules
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-06-12 01:40:56 +0000
committerjoeyh <joeyh>2006-06-12 01:40:56 +0000
commitbf38096fa55c43807885d5c531a067f5781a945b (patch)
tree4034404a2b8ca2c448dca07ab31d51d73fbfe841 /dh_installmodules
parent4ac0a7b9288220f00c948225ac659419ffc08110 (diff)
r1932: split the scripts for the two cases, undo behavior change
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 f3e8cc84..6b996a58 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");