updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / samsung-tools / samsung-tools.rcd
blobddbd9983ca62c78b0381c57bebb5a987f1ea84a4
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 DAEMON=samsung-tools
8 case "$1" in
9 start)
10 stat_busy "Starting $DAEMON"
11 # Start the system service and set initial status for devices
12 dbus-send --system --print-reply=literal --dest='org.voria.SamsungTools.System' \
13 '/' org.voria.SamsungTools.System.SetInitialDevicesStatus
14 add_daemon $DAEMON
15 stat_done
17 stop)
18 stat_busy "Stopping $DAEMON"
19 rm_daemon $DAEMON
20 stat_done
22 restart)
23 $0 stop
24 sleep 1
25 $0 start
28 echo "Usage: $0 {start|stop|restart}"
30 esac
31 exit 0