summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-06-17 02:35:18 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-06-17 02:35:18 +0200
commitfb5dadf2c1e5c47cc7be3fc61a4b2b2e75670be6 (patch)
treecb4fc168b9da44ce1b050ee5c9c098020b4929e5
parent459259fd7f8d3f5aa30e90f12165eb426f3116d6 (diff)
downloadtde-packaging-fb5dadf2.tar.gz
tde-packaging-fb5dadf2.zip
Fix symlink creation, if not installed logitechmouse.rules
-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