updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / tvmovie2vdr / tvm2vdr
blobd702c14a719ae3f8bd7b8e5beb1588e2981edfaf
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
5 . /etc/rc.tvm2vdr
7 case "$1" in
8 start)
9 stat_busy "Starting TVMovie2VDR"
11 if [ `date +%H` = $TVM2VDRHOUR ]; then
12 /usr/lib/vdr/tvmovie2vdr/tvm2vdr.sh &
15 if [ $? -gt 0 ]; then
16 stat_fail
17 else
18 stat_done
21 stop)
22 stat_busy "Stopping TVMovie2VDR"
24 killall --quiet /usr/lib/vdr/tvmovie2vdr/tvm2vdr.sh
26 stat_done
28 restart)
29 $0 stop
30 sleep 1
31 $0 start
34 echo "usage: $0 {start|stop|restart}"
36 esac