call "/etc/pm/sleep.d/50_tvheadend resume" instead "/usr/bin/tvheadend -C -s -f -u root -g root" (directly), because on a twin tuner card tvheadend is starting two times.

This commit is contained in:
Colossus 2011-04-22 01:35:45 +02:00
parent 264074e2dc
commit e219410a6d

View File

@ -24,7 +24,7 @@ SUBSYSTEM!="dvb", GOTO="end"
ENV{DVB_DEVICE_TYPE}!="frontend", GOTO="end"
# Start TVHeadend if dvb frontend is starting
ACTION=="add", RUN+="/usr/bin/tvheadend -C -s -f -u root -g root"
ACTION=="add", RUN+="/etc/pm/sleep.d/50_tvheadend resume"
ACTION=="remove", RUN+="/usr/bin/killall tvheadend"
LABEL="end"