[Buildroot] [PATCH 3/6] package/tvheadend: wait for DVB devices

Peter Korsgaard jacmet at uclibc.org
Fri Feb 22 22:43:48 UTC 2013


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 Yann> Wait for DVB devices before starting up the tvheadend daemon.
 Yann> Wait for maximum 15 seconds.

 Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
 Yann> ---
 Yann>  package/tvheadend/S99tvheadend |    7 +++++++
 Yann>  1 files changed, 7 insertions(+), 0 deletions(-)

 Yann> diff --git a/package/tvheadend/S99tvheadend b/package/tvheadend/S99tvheadend
 Yann> index 407b873..3a1218a 100644
 Yann> --- a/package/tvheadend/S99tvheadend
 Yann> +++ b/package/tvheadend/S99tvheadend
 Yann> @@ -23,6 +23,13 @@ ARGS="-f"
 
 Yann>  case "$1" in
 Yann>      start)
 Yann> +        printf "Waiting for DVB device nodes..."
 Yann> +        cpt=15
 Yann> +        while [ ! -d /dev/dvb/adapter0 -a ${cpt} -gt 0 ]; do

I don't know much about tvheadend, but are people always going to use it
with dvb? E.G. I have a hdhomerun and a ivtv (v4l) device, but no dvb.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list