summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/lenny/tdebase/debian/kcontrol-trinity.postinst2
-rw-r--r--debian/squeeze/tdebase/debian/kcontrol-trinity.postinst2
-rw-r--r--ubuntu/maverick/tdebase/debian/kcontrol-trinity.postinst2
3 files changed, 3 insertions, 3 deletions
diff --git a/debian/lenny/tdebase/debian/kcontrol-trinity.postinst b/debian/lenny/tdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/debian/lenny/tdebase/debian/kcontrol-trinity.postinst
+++ b/debian/lenny/tdebase/debian/kcontrol-trinity.postinst
@@ -4,7 +4,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
- [ -e "$LINK" ] || [ -L "$LINK" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
;;
esac
diff --git a/debian/squeeze/tdebase/debian/kcontrol-trinity.postinst b/debian/squeeze/tdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/debian/squeeze/tdebase/debian/kcontrol-trinity.postinst
+++ b/debian/squeeze/tdebase/debian/kcontrol-trinity.postinst
@@ -4,7 +4,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
- [ -e "$LINK" ] || [ -L "$LINK" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
;;
esac
diff --git a/ubuntu/maverick/tdebase/debian/kcontrol-trinity.postinst b/ubuntu/maverick/tdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/ubuntu/maverick/tdebase/debian/kcontrol-trinity.postinst
+++ b/ubuntu/maverick/tdebase/debian/kcontrol-trinity.postinst
@@ -4,7 +4,7 @@ case "$1" in
configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules"
- [ -e "$LINK" ] || [ -L "$LINK" ] || ln -s ../logitechmouse.rules "$LINK"
+ [ -e "$LINK" ] || [ -L "$LINK" ] || [ ! -f "${LINK%/rules.d/*}/logitechmouse.rules" ] || ln -s ../logitechmouse.rules "$LINK"
;;
esac