PKGBUILDs/community/lmctl/lmctl.rc.d
2009-10-09 21:15:33 -05:00

21 lines
366 B
Bash

#!/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