]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installudev
r1992: * Fix absurd typo. How did I test for an hour and miss that? Closes: #419612
[debhelper.git] / dh_installudev
index 859efc8de0a32cfc818bd218f623e47e044415bd..768703a5c6692ebc38168451b3459881a75e87aa 100755 (executable)
@@ -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");
                }
        }
 }