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-07-23 23:17:54 +0200
commit3aa05d61df50474091636c2f933a18bf0a606f55 (patch)
treecbc30c79706c36aa4f5e8bde34d79a8e7790d05f
parentc03f8fb6d4c96fc84503c91787ad55a871a26252 (diff)
downloadtde-packaging-3aa05d61df50474091636c2f933a18bf0a606f55.tar.gz
tde-packaging-3aa05d61df50474091636c2f933a18bf0a606f55.zip
Fix symlink creation, if not installed logitechmouse.rules
(cherry picked from commit fb5dadf2c1e5c47cc7be3fc61a4b2b2e75670be6)
-rw-r--r--debian/lenny/kdebase/debian/kcontrol-trinity.postinst2
-rw-r--r--debian/squeeze/kdebase/debian/kcontrol-trinity.postinst2
-rw-r--r--ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst2
3 files changed, 3 insertions, 3 deletions
diff --git a/debian/lenny/kdebase/debian/kcontrol-trinity.postinst b/debian/lenny/kdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/debian/lenny/kdebase/debian/kcontrol-trinity.postinst
+++ b/debian/lenny/kdebase/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/kdebase/debian/kcontrol-trinity.postinst b/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/debian/squeeze/kdebase/debian/kcontrol-trinity.postinst
+++ b/debian/squeeze/kdebase/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/kdebase/debian/kcontrol-trinity.postinst b/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst
index 77efdbda7..e879da462 100644
--- a/ubuntu/maverick/kdebase/debian/kcontrol-trinity.postinst
+++ b/ubuntu/maverick/kdebase/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