diff options
author | Pierre Chifflier <pollux@debian.org> | 2012-07-05 20:56:13 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-25 14:36:22 +0000 |
commit | 0069ef22ba877f2a5dddfb8722757f5c3577b661 (patch) | |
tree | 58fc42bd7267686730ce267fcf71142255b9e9bc /debian/trousers.preinst | |
parent | c3649a2def02c41d837ae1f79dda729ccb91e677 (diff) | |
download | trousers-0069ef22ba877f2a5dddfb8722757f5c3577b661.tar.gz |
Imported Debian patch 0.3.9-3debian/0.3.9-3
Diffstat (limited to 'debian/trousers.preinst')
-rw-r--r-- | debian/trousers.preinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/trousers.preinst b/debian/trousers.preinst new file mode 100644 index 0000000..83d3cb6 --- /dev/null +++ b/debian/trousers.preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if [ -e "/etc/udev/rules.d/45-trousers.rules" ]; then + if [ "`md5sum \"/etc/udev/rules.d/45-trousers.rules\" | sed -e \"s/ .*//\"`" = \ + "`dpkg-query -W -f='${Conffiles}' trousers | sed -n -e \"\\\\' /etc/udev/rules.d/45-trousers.rules '{s/ obsolete$//;s/.* //p}\"`" ] + then + rm -f "/etc/udev/rules.d/45-trousers.rules" + fi + fi +fi + +#DEBHELPER# |