summaryrefslogtreecommitdiff
path: root/community-testing/lomoco/lomoco.sh
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/lomoco/lomoco.sh')
-rw-r--r--community-testing/lomoco/lomoco.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/community-testing/lomoco/lomoco.sh b/community-testing/lomoco/lomoco.sh
new file mode 100644
index 000000000..76e2392da
--- /dev/null
+++ b/community-testing/lomoco/lomoco.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ -n "$BUSNUM" -a -n "$DEVNUM" ]; then
+ . /etc/udev/lomoco_mouse.conf
+
+ options=
+
+ if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
+ options="--$LOGITECH_MOUSE_RESOLUTION"
+ fi
+
+ case "$LOGITECH_MOUSE_SMS" in
+ yes) options="$options --sms" ;;
+ no) options="$options --no-sms" ;;
+ esac
+
+ if [ -n "$options" ]; then
+ /usr/bin/lomoco -b $BUSNUM -d $DEVNUM $options
+ fi
+
+fi 2>&1 | /usr/bin/logger -t lomoco