summaryrefslogtreecommitdiff
path: root/community/lomoco/lomoco.sh
blob: 76e2392daf0949efb1d0534fd7f3ab5caf75d374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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