diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-03-02 21:20:29 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-03-02 21:20:29 -0500 |
commit | 4ad78d9db390d7c68d48fc9017fbec516a68a9fe (patch) | |
tree | 5b89271ad8a9f36c1eb0969b08591dea9ad031d0 /autoscripts/preinst-udev | |
parent | e7ab4dca7d240f48a51960a6978c05d2f5aa7a97 (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 'autoscripts/preinst-udev')
-rw-r--r-- | autoscripts/preinst-udev | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/autoscripts/preinst-udev b/autoscripts/preinst-udev index 2b6ede30..7874fdb7 100644 --- a/autoscripts/preinst-udev +++ b/autoscripts/preinst-udev @@ -1,11 +1,4 @@ if [ "$1" = install ] || [ "$1" = upgrade ]; then - if [ -e "#OLD#" ]; then - if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \ - "`dpkg-query -W -f='${Conffiles}' #PACKAGE# | sed -n -e \"\\\\' #OLD#'s/.* //p\"`" ] - then - rm -f "#OLD#" - fi - fi if [ -L "#RULE#" ]; then rm -f "#RULE#" fi |