mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Merge pull request #631 from stefansaraev/vdr
vdr: vdr.start: initial configuration optinizations
This commit is contained in:
commit
85f075d3e3
@ -97,33 +97,34 @@ fi
|
|||||||
cd $ADDON_DIR/config
|
cd $ADDON_DIR/config
|
||||||
mkdir -p $ADDON_CONFIG_DIR
|
mkdir -p $ADDON_CONFIG_DIR
|
||||||
|
|
||||||
# copy live plugin html content
|
|
||||||
mkdir -p $ADDON_CONFIG_DIR/plugins/live
|
|
||||||
cp -PR plugins/live/* $ADDON_CONFIG_DIR/plugins/live
|
|
||||||
|
|
||||||
# copy vdr theme
|
|
||||||
if [ ! -d "$ADDON_CONFIG_DIR/plugins/text2skin/" ]; then
|
|
||||||
mkdir -p $ADDON_CONFIG_DIR/plugins/text2skin/
|
|
||||||
cp -a plugins/text2skin $ADDON_CONFIG_DIR/plugins/
|
|
||||||
cp -a themes $ADDON_CONFIG_DIR/
|
|
||||||
|
|
||||||
# is this in conflict with something else?
|
|
||||||
cat >$ADDON_CONFIG_DIR/setup.conf << MYDATA
|
|
||||||
OSDSkin = anthra_1280_OS
|
|
||||||
OSDTheme = yabluelight
|
|
||||||
xineliboutput.OSD.Blending = 1
|
|
||||||
MYDATA
|
|
||||||
fi
|
|
||||||
|
|
||||||
for dir in `find . -type d`; do
|
for dir in `find . -type d`; do
|
||||||
mkdir -p $ADDON_CONFIG_DIR/$dir
|
mkdir -p $ADDON_CONFIG_DIR/$dir
|
||||||
done
|
done
|
||||||
|
|
||||||
for config in `find . -type f -name "*.conf*"`; do
|
for config in `find . -type f`; do
|
||||||
if [ ! -f $ADDON_CONFIG_DIR/$config ]; then
|
if [ ! -f $ADDON_CONFIG_DIR/$config ]; then
|
||||||
cp $config $ADDON_CONFIG_DIR/$config
|
cp $config $ADDON_CONFIG_DIR/$config
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -f "$ADDON_CONFIG_DIR/setup.conf" ]; then
|
||||||
|
sed -i -e '/^$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^OSDHeight.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^OSDSkin.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^OSDTheme.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^xineliboutput.OSD.Blending.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^xineliboutput.OSD.Size.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
sed -i -e '/^xineliboutput.OSD.SoftOSD.*$/d' $ADDON_CONFIG_DIR/setup.conf
|
||||||
|
fi
|
||||||
|
cat >>$ADDON_CONFIG_DIR/setup.conf << MYDATA
|
||||||
|
OSDHeight = 1080
|
||||||
|
OSDSkin = anthra_1280_OS
|
||||||
|
OSDTheme = yabluelight
|
||||||
|
xineliboutput.OSD.Blending = 1
|
||||||
|
xineliboutput.OSD.Size = 1280x720
|
||||||
|
xineliboutput.OSD.SoftOSD = 1
|
||||||
|
MYDATA
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ ! "$(pidof vdr.bin)" ];then
|
if [ ! "$(pidof vdr.bin)" ];then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user