updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lomoco / lomoco.sh
blob76e2392daf0949efb1d0534fd7f3ab5caf75d374
1 #!/bin/bash
3 if [ -n "$BUSNUM" -a -n "$DEVNUM" ]; then
4 . /etc/udev/lomoco_mouse.conf
6 options=
8 if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
9 options="--$LOGITECH_MOUSE_RESOLUTION"
12 case "$LOGITECH_MOUSE_SMS" in
13 yes) options="$options --sms" ;;
14 no) options="$options --no-sms" ;;
15 esac
17 if [ -n "$options" ]; then
18 /usr/bin/lomoco -b $BUSNUM -d $DEVNUM $options
21 fi 2>&1 | /usr/bin/logger -t lomoco