mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
vdr-addon: /var/lib/epgsources used only by xmltv2vdr
This commit is contained in:
parent
de4916a781
commit
c79734b4bb
@ -49,18 +49,6 @@ if [ ! -f "$ADDON_CACHE_DIR" ]; then
|
||||
mkdir -p $ADDON_CACHE_DIR
|
||||
fi
|
||||
|
||||
#handle epgsources
|
||||
mkdir -p /var/lib/epgsources
|
||||
mkdir -p $ADDON_HOME/config/epgsources
|
||||
for source in `find $ADDON_DIR/config/epgsources -type f`; do
|
||||
if [ ! -e $ADDON_HOME/config/epgsources/`basename $source` ] ; then
|
||||
cp $source $ADDON_HOME/config/epgsources/
|
||||
fi
|
||||
done
|
||||
for source in `find $ADDON_HOME/config/epgsources -type f`; do
|
||||
cp $source /var/lib/epgsources
|
||||
done
|
||||
|
||||
VDR_ARG="-g /tmp --no-kbd"
|
||||
if [ "$DEBUG" = "yes" ]; then
|
||||
VDR_ARG="$VDR_ARG --log=3"
|
||||
@ -115,6 +103,17 @@ if [ "$ENABLE_XMLTV2VDR" == "true" ] ; then
|
||||
VDR_ARG="$VDR_ARG -P 'xmltv2vdr --epgfile=$ADDON_CACHE_DIR/epg.db'"
|
||||
# xmltv2vdr needs /var/run/vdr
|
||||
grep -q " /var/run/vdr " /proc/mounts || ( mkdir -p /var/run/vdr && mount -t tmpfs -o size=10% tmpfs /var/run/vdr )
|
||||
#handle epgsources
|
||||
mkdir -p /var/lib/epgsources
|
||||
mkdir -p $ADDON_HOME/config/epgsources
|
||||
for source in `find $ADDON_DIR/config/epgsources -type f`; do
|
||||
if [ ! -e $ADDON_HOME/config/epgsources/`basename $source` ] ; then
|
||||
cp $source $ADDON_HOME/config/epgsources/
|
||||
fi
|
||||
done
|
||||
for source in `find $ADDON_HOME/config/epgsources -type f`; do
|
||||
cp $source /var/lib/epgsources
|
||||
done
|
||||
fi
|
||||
# vnsi/xvdr last
|
||||
VDR_ARG="$VDR_ARG -P $PVR_PLUGIN"
|
||||
|
Loading…
x
Reference in New Issue
Block a user