summaryrefslogtreecommitdiff
path: root/dh_installudev
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-03-02 21:20:29 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-03-02 21:20:29 -0500
commit4ad78d9db390d7c68d48fc9017fbec516a68a9fe (patch)
tree5b89271ad8a9f36c1eb0969b08591dea9ad031d0 /dh_installudev
parente7ab4dca7d240f48a51960a6978c05d2f5aa7a97 (diff)
conffile moving idiocy
* dh_installmodules: Give files in /etc/modprobe.d a .conf syntax, as required by new module-init-tools. * dh_installmodules: Add preinst and postinst code to handle cleanly renaming the modprobe.d files on upgrade. * Two updates to conffile moving code from wiki: - Support case where the conffile name is a substring of another conffile's name. - Support case where dpkg-query says the file is obsolete.
Diffstat (limited to 'dh_installudev')
-rwxr-xr-xdh_installudev5
1 files changed, 3 insertions, 2 deletions
diff --git a/dh_installudev b/dh_installudev
index 9dd4e18..243dc73 100755
--- a/dh_installudev
+++ b/dh_installudev
@@ -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");
}
}
}