mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
556296fe66
- Add startup script that the rc.d script invokes to wait for /dev/dvb nodes to appear, can be disabled by setting vdr_waitdvb="NO" in rc.conf(5). (This turned out to be necessary in some situations because devd starts webcamd only later in the boot process.) - One more fix for changing OSD language when using UTF-8. - Update multimedia/vdr-plugin-femon to 1.7.11 . - Update multimedia/vdr-plugin-ttxtsubs to 0.2.4 . - Bump PORTREVISION for all other plugins. - Update www/vdradmin-am to 3.6.9 .
41 lines
628 B
Bash
41 lines
628 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: /tmp/pcvs/ports/multimedia/vdr/files/vdr-waitdvb.in,v 1.1 2012-01-21 17:32:50 nox Exp $
|
|
#
|
|
|
|
command="%%PREFIX%%/bin/vdr"
|
|
|
|
echo -n "vdr: waiting for dvb nodes: "
|
|
i=0
|
|
while true
|
|
do
|
|
ndvb=$(ls /dev/dvb/adapter*/frontend* 2>/dev/null|wc -l|tr -d ' ')
|
|
if [ $ndvb -gt 0 ]; then
|
|
break
|
|
fi
|
|
if [ $i -ge 60 ]; then
|
|
break
|
|
fi
|
|
i=$((i + 1))
|
|
sleep 1
|
|
echo -n "."
|
|
done
|
|
|
|
i=0
|
|
while true
|
|
do
|
|
sleep 2
|
|
nndvb=$(ls /dev/dvb/adapter*/frontend* 2>/dev/null|wc -l|tr -d ' ')
|
|
echo -n " $nndvb"
|
|
if [ $nndvb -eq $ndvb ]; then
|
|
break
|
|
fi
|
|
if [ $i -ge 30 ]; then
|
|
break
|
|
fi
|
|
i=$((i + 1))
|
|
done
|
|
echo .
|
|
|
|
exec "$command" "$@"
|