From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/lmctl/lmctl.rc.d | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 community/lmctl/lmctl.rc.d (limited to 'community/lmctl/lmctl.rc.d') diff --git a/community/lmctl/lmctl.rc.d b/community/lmctl/lmctl.rc.d new file mode 100644 index 000000000..e9eaf7de1 --- /dev/null +++ b/community/lmctl/lmctl.rc.d @@ -0,0 +1,21 @@ +#!/bin/bash +LMCTL_ARGS= +[ -f /etc/conf.d/lmctl ] && . /etc/conf.d/lmctl + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Setting up Logitech Mouse" + /usr/bin/lmctl ${LMCTL_ARGS} &>/dev/null + if [ $? -eq 0 ] ; then + stat_fail + else + stat_done + add_daemon lmctl + fi + ;; + *) + echo "usage: $0 {start}" +esac -- cgit v1.2.3-54-g00ecf