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