Fix symlink creation, if not installed logitechmouse.rules

pull/3/head
Slávek Banko 13 years ago
parent 459259fd7f
commit fb5dadf2c1

@ -4,7 +4,7 @@ case "$1" in
configure) configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules" 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 esac

@ -4,7 +4,7 @@ case "$1" in
configure) configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules" 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 esac

@ -4,7 +4,7 @@ case "$1" in
configure) configure)
LINK="/etc/udev/rules.d/025_logitechmouse.rules" 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 esac

Loading…
Cancel
Save