mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
vdr-addon: /var/run/vdr used only by xmltv2vdr. dont always mount
This commit is contained in:
parent
03ebd89c7a
commit
de4916a781
@ -22,14 +22,6 @@
|
|||||||
|
|
||||||
oe_setup_addon service.multimedia.vdr-addon
|
oe_setup_addon service.multimedia.vdr-addon
|
||||||
|
|
||||||
check_tmpfs_mount() {
|
|
||||||
grep " /var/run/vdr " /proc/mounts >/dev/null
|
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
mkdir -p /var/run/vdr
|
|
||||||
mount -t tmpfs -o size=10% tmpfs /var/run/vdr
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
fix_config() {
|
fix_config() {
|
||||||
if [ -f "$ADDON_CONFIG_DIR/setup.conf" ]; then
|
if [ -f "$ADDON_CONFIG_DIR/setup.conf" ]; then
|
||||||
sed -i -e '/^$/d' $ADDON_CONFIG_DIR/setup.conf
|
sed -i -e '/^$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
@ -121,6 +113,8 @@ if [ "$ENABLE_EPGSEARCH" == "true" ] ; then
|
|||||||
fi
|
fi
|
||||||
if [ "$ENABLE_XMLTV2VDR" == "true" ] ; then
|
if [ "$ENABLE_XMLTV2VDR" == "true" ] ; then
|
||||||
VDR_ARG="$VDR_ARG -P 'xmltv2vdr --epgfile=$ADDON_CACHE_DIR/epg.db'"
|
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 )
|
||||||
fi
|
fi
|
||||||
# vnsi/xvdr last
|
# vnsi/xvdr last
|
||||||
VDR_ARG="$VDR_ARG -P $PVR_PLUGIN"
|
VDR_ARG="$VDR_ARG -P $PVR_PLUGIN"
|
||||||
@ -157,6 +151,5 @@ if [ "$WAIT_FOR_FEINIT" == "true" ] ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_tmpfs_mount
|
|
||||||
fix_config
|
fix_config
|
||||||
eval LANG=en_US.UTF-8 exec vdr.bin $VDR_ARG
|
eval LANG=en_US.UTF-8 exec vdr.bin $VDR_ARG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user