File: udev.lomoco

package info (click to toggle)
lomoco 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 364 kB
  • sloc: ansic: 691; xml: 295; sh: 120; makefile: 38; awk: 22
file content (24 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
#  udev helper script for the locomo utility
#

test -x /usr/bin/lomoco || exit 0
test -r /etc/default/lomoco || exit 0

options=
. /etc/default/lomoco

if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
	options="--$LOGITECH_MOUSE_RESOLUTION"
fi

if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then
	options="$options --no-sms"
fi

if [ -n "$options" ]; then
	/usr/bin/lomoco -b $BUSNUM -d $DEVNUM -p $ID_MODEL_ID $options 2>&1 |\
		sed -e 's/^[[:blank:]]\+//' -e 's/ \+$//' -e '/^$/ d' |\
		logger -t lomoco -p daemon.info
fi