mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
vdr:
- faster starting
This commit is contained in:
parent
816cafc91c
commit
9668c46682
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user