mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-20 07:35:26 +00:00
24 lines
467 B
Bash
24 lines
467 B
Bash
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
. /etc/profile
|
|
oe_setup_addon service.lcdd
|
|
|
|
if [ -z "$LCD_DRIVER" -o "$LCD_DRIVER" == "none" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
LCDCONF=$ADDON_HOME/LCDd.conf
|
|
|
|
if [ ! -f $LCDCONF ]; then
|
|
if [ -f /storage/.cache/LCDd.conf ]; then
|
|
mv /storage/.cache/LCDd.conf $LCDCONF
|
|
else
|
|
cp $ADDON_DIR/config/LCDd.conf $LCDCONF
|
|
fi
|
|
fi
|
|
|
|
LCDd -f -c $LCDCONF -d $LCD_DRIVER
|