]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installudev
Merge branch 'master' of ssh://git.debian.org/git/debhelper/debhelper
[debhelper.git] / dh_installudev
index 44f3177ac97365b6877ed7cdd65f8abcd575b75f..243dc732435d4c67046a1e6ba57573a4b7d57b70 100755 (executable)
@@ -43,14 +43,14 @@ Sets the priority string of the rules.d symlink. Default is z60.
 
 Do not modify postinst/postrm scripts.
 
+=back
+
 =head1 NOTES
 
-Note that this command is not idempotent. "dh_clean -k" should be called
+Note that this command is not idempotent. L<dh_prep(1)> should be called
 between invocations of this command. Otherwise, it may cause multiple
 instances of the same text to be added to maintainer scripts.
 
-=back
-
 =cut
 
 init();
@@ -79,8 +79,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                if (! $dh{NOSCRIPTS}) {
                        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;s!#PACKAGE#!$package!g");
-                       autoscript($package,"postinst","postinst-udev","s!#OLD#!$old!g;s!#RULE#!$rule!g");
+                       autoscript($package,"preinst","preinst-moveconffile","s!#OLD#!$old!g;s!#PACKAGE#!$package!g");
+                       autoscript($package,"postinst","postinst-moveconffile","s!#OLD#!$old!g;s!#NEW#!$rule!g");
+                       autoscript($package,"preinst","preinst-udev","s!#RULE#!$rule!g");
                }
        }
 }