mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
vdr:
- faster starting
This commit is contained in:
parent
816cafc91c
commit
9668c46682
@ -4,25 +4,27 @@
|
|||||||
#
|
#
|
||||||
# runlevels: geexbox, debug
|
# runlevels: geexbox, debug
|
||||||
|
|
||||||
. /etc/sysconfig
|
(
|
||||||
|
. /etc/sysconfig
|
||||||
|
|
||||||
echo "### Starting VDR ###"
|
echo "### Starting VDR ###"
|
||||||
|
|
||||||
PLUGINS=""
|
PLUGINS=""
|
||||||
for file in /etc/vdr/plugins.d/*; do
|
for file in /etc/vdr/plugins.d/*; do
|
||||||
# plugins are enabled by default
|
# plugins are enabled by default
|
||||||
PLUGIN=""
|
PLUGIN=""
|
||||||
OPTIONS=""
|
OPTIONS=""
|
||||||
INITCMD=""
|
INITCMD=""
|
||||||
ENABLED=yes
|
ENABLED=yes
|
||||||
. $file
|
. $file
|
||||||
[ "$ENABLED" = yes ] && PLUGINS="$PLUGINS -P'$PLUGIN $OPTIONS'"
|
[ "$ENABLED" = yes ] && PLUGINS="$PLUGINS -P'$PLUGIN $OPTIONS'"
|
||||||
[ -n "$INITCMD" ] && eval $INITCMD
|
[ -n "$INITCMD" ] && eval $INITCMD
|
||||||
done
|
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
|
# start VDR
|
||||||
runvdr "$VDRCMD" &
|
runvdr "$VDRCMD"
|
||||||
|
)&
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user