lcdproc: add support for user LCDd.conf in /storage/.config

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-12-14 12:28:41 +01:00
parent 87898a20d7
commit d884037db4

View File

@ -29,13 +29,23 @@
(
[ -f /storage/.config/lcd.conf ] && . /storage/.config/lcd.conf || exit 0
if [ ! "$LCD_DRIVER" = none ]; then
progress "Starting LCD daemon with driver: $LCD_DRIVER"
usleep 10000000 # sleep 10sec. to for irserver loading
if [ -f /storage/.config/LCDd.conf ]; then
LCD_CONFIG="/storage/.config/LCDd.conf"
else
LCD_CONFIG="/etc/LCDd.conf"
fi
LCDd -c /etc/LCDd.conf -d $LCD_DRIVER > /dev/null 2>&1
# sleep 10sec. to for irserver loading
if [ "$LCD_DRIVER" = "irtrans" ]; then
usleep 10000000
fi
LCDd -c $LCD_CONFIG -d $LCD_DRIVER > /dev/null 2>&1
fi
)&