summaryrefslogtreecommitdiff
path: root/dh_installmodules
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-06-11 17:00:03 +0000
committerjoeyh <joeyh>2006-06-11 17:00:03 +0000
commit1d0708824b6bca8abd6028a306d7512e0c0f0b7b (patch)
tree67166a1ba7c200881585cbea0ec637a625f1dd38 /dh_installmodules
parent3ccdc50eabcdcea497fec06c481bce39f8fa32b4 (diff)
r1930: bug fixes
Diffstat (limited to 'dh_installmodules')
-rwxr-xr-xdh_installmodules6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_installmodules b/dh_installmodules
index be2efad..f3e8cc8 100755
--- a/dh_installmodules
+++ b/dh_installmodules
@@ -67,7 +67,7 @@ sub find_kernel_modules {
return unless -d $searchdir;
find(sub {
if (/\.k?o$/) {
- my $kvers=$File::Find::dir=~m!lib/modules/([^/]+)/!;
+ my ($kvers)=$File::Find::dir=~m!lib/modules/([^/]+)/!;
if (! defined $kvers || ! length $kvers) {
warning("Cannot determine kernel version for module $File::Find::name");
}
@@ -105,8 +105,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! $dh{NOSCRIPTS}) {
foreach my $kvers (find_kernel_modules("$tmp/lib/modules")) {
- autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/");
- autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/");
+ autoscript($package,"postinst","postinst-modules","s/#KVERS#/$kvers/g");
+ autoscript($package,"postrm","postrm-modules","s/#KVERS#/$kvers/g");
}
}
}