summaryrefslogtreecommitdiff
path: root/dh_installudev
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-04-12 19:53:00 +0000
committerjoeyh <joeyh>2007-04-12 19:53:00 +0000
commit5f8b0ca0ad553f295e7d269e9dc39e63024be18c (patch)
treecc8f5d0c8f80c25295c4341310311df2a1def15b /dh_installudev
parente34e7479d1aa03f163b90829ae7d4f859371ed0e (diff)
r1985: cleanup
Diffstat (limited to 'dh_installudev')
-rwxr-xr-xdh_installudev6
1 files changed, 4 insertions, 2 deletions
diff --git a/dh_installudev b/dh_installudev
index 859efc8..912fecd 100755
--- a/dh_installudev
+++ b/dh_installudev
@@ -77,8 +77,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
doit("install","-m","0644",$rules_file,"$tmp/etc/udev/rules.d/$dh{PRIORITY}$filename");
if (! $dh{NOSCRIPTS}) {
- autoscript($package,"preinst","preinst-udev","s/#FILE#/$filename/g;s/#PRIO#/$dh{PRIORITY}/g");
- autoscript($package,"postinst","postinst-udev","s/#FILE#/$filename/g;s/#PRIO#/$dh{PRIORITY}/g");
+ my $old="/etc/udev/$filename";
+ my $rule="/etc/udev/rules.d/$dh{PRIORITY}$filename";
+ autoscript($package,"preinst","preinst-udev","s!#OLD#!$old!/g;s!#RULE#!$rule!g");
+ autoscript($package,"postinst","postinst-udev","s!#OLD#!$old!/g;s!#RULE#!$rule!g");
}
}
}