- faster starting
This commit is contained in:
Stephan Raue 2009-12-01 11:03:13 +01:00
parent 816cafc91c
commit 9668c46682

View File

@ -4,25 +4,27 @@
#
# runlevels: geexbox, debug
. /etc/sysconfig
(
. /etc/sysconfig
echo "### Starting VDR ###"
echo "### Starting VDR ###"
PLUGINS=""
for file in /etc/vdr/plugins.d/*; do
# plugins are enabled by default
PLUGIN=""
OPTIONS=""
INITCMD=""
ENABLED=yes
. $file
[ "$ENABLED" = yes ] && PLUGINS="$PLUGINS -P'$PLUGIN $OPTIONS'"
[ -n "$INITCMD" ] && eval $INITCMD
done
PLUGINS=""
for file in /etc/vdr/plugins.d/*; do
# plugins are enabled by default
PLUGIN=""
OPTIONS=""
INITCMD=""
ENABLED=yes
. $file
[ "$ENABLED" = yes ] && PLUGINS="$PLUGINS -P'$PLUGIN $OPTIONS'"
[ -n "$INITCMD" ] && eval $INITCMD
done
VDRCMD="vdr -g /tmp -s /usr/bin/vdrshutdown --vfat --no-kbd $PLUGINS > /tmp/vdr.out 2>&1"
VDRCMD="vdr -g /tmp -s /usr/bin/vdrshutdown --vfat --no-kbd $PLUGINS > /tmp/vdr.out 2>&1"
# start VDR
runvdr "$VDRCMD" &
# start VDR
runvdr "$VDRCMD"
)&
exit 0