blob: 3d3e620b36e7d643667bc70c6410f59e48df81ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
if ! [ -x /usr/bin/usbtunerhelper ]; then
exit 0
fi
VTUNER_FILE="/tmp/.vtuner_available"
case "$1" in
start)
start-stop-daemon -S -x /usr/bin/usbtunerhelper
if [ -f $VTUNER_FILE ]
then
echo "[USBTUNERHELPER] wait for initializing vtuner"
while [ ! -f $VTUNER_FILE ]; do
usleep 100000
done
sleep 2
fi
;;
stop)
start-stop-daemon -K -x /usr/bin/usbtunerhelper
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
|