summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-09-09 11:35:53 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-09-14 03:02:45 +0200
commitcab5a344c5af48ae18da7b717f3c97ee951aa9d6 (patch)
tree361a5d06d0bf726f5367cbd2415179968d23de66
parent021676614f8faf80943d62294c98deaee433f354 (diff)
downloadtde-packaging-cab5a344c5af48ae18da7b717f3c97ee951aa9d6.tar.gz
tde-packaging-cab5a344c5af48ae18da7b717f3c97ee951aa9d6.zip
Added cleanup logitechmouse.rules symlink to tdebase on Debian and Ubuntu
(cherry picked from commit b60c8df9f7b91899327fd77d4a99fbabab5b230f)
-rw-r--r--debian/lenny/kdebase/debian/kcontrol-trinity.postinst1
-rw-r--r--debian/squeeze/kdebase/debian/kcontrol-trinity.postinst1
-rw-r--r--ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst1
3 files changed, 3 insertions, 0 deletions
diff --git a/debian/lenny/kdebase/debian/kcontrol-trinity.postinst b/debian/lenny/kdebase/debian/kcontrol-trinity.postinst
index e879da462..4733c3a43 100644
--- a/debian/lenny/kdebase/debian/kcontrol-trinity.postinst
+++ b/debian/lenny/kdebase/debian/kcontrol-trinity.postinst
@@ -5,6 +5,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
[ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ ! -L "$LINK" ] || [ -e "$LINK" ] || rm "$LINK"
;;
esac
diff --git a/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst b/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst
index e879da462..4733c3a43 100644
--- a/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst
+++ b/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst
@@ -5,6 +5,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
[ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ ! -L "$LINK" ] || [ -e "$LINK" ] || rm "$LINK"
;;
esac
diff --git a/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst b/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst
index e879da462..4733c3a43 100644
--- a/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst
+++ b/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst
@@ -5,6 +5,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
[ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ ! -L "$LINK" ] || [ -e "$LINK" ] || rm "$LINK"
;;
esac