mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
lcdproc: rework init scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
522b9b4988
commit
314defccf9
38
packages/sysutils/lcdproc/init.d/33_lcdproc → packages/sysutils/lcdproc/init.d/63_lcdproc
Executable file → Normal file
38
packages/sysutils/lcdproc/init.d/33_lcdproc → packages/sysutils/lcdproc/init.d/63_lcdproc
Executable file → Normal file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||||
# http://www.openelec.tv
|
# http://www.openelec.tv
|
||||||
@ -24,30 +22,28 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
. /etc/profile
|
|
||||||
|
|
||||||
(
|
(
|
||||||
[ -f /storage/.config/lcd.conf ] && . /storage/.config/lcd.conf || exit 0
|
if [ -f /storage/.config/lcd.conf ]; then
|
||||||
|
. /storage/.config/lcd.conf
|
||||||
|
|
||||||
|
if [ ! "$LCD_DRIVER" = none ]; then
|
||||||
|
|
||||||
if [ ! "$LCD_DRIVER" = none ]; then
|
progress "Starting LCD daemon with driver: $LCD_DRIVER"
|
||||||
|
|
||||||
progress "Starting LCD daemon with driver: $LCD_DRIVER"
|
if [ -f /storage/.config/LCDd.conf ]; then
|
||||||
|
LCD_CONFIG="/storage/.config/LCDd.conf"
|
||||||
if [ -f /storage/.config/LCDd.conf ]; then
|
else
|
||||||
LCD_CONFIG="/storage/.config/LCDd.conf"
|
LCD_CONFIG="/etc/LCDd.conf"
|
||||||
else
|
|
||||||
LCD_CONFIG="/etc/LCDd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# sleep 10sec. to for irserver loading
|
|
||||||
if [ "$LCD_DRIVER" = "irtrans" ]; then
|
|
||||||
usleep 7000000
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# sleep another 3sec. to for irserver loading
|
# sleep 10sec. to for irserver loading
|
||||||
usleep 3000000
|
if [ "$LCD_DRIVER" = "irtrans" ]; then
|
||||||
LCDd -c $LCD_CONFIG -d $LCD_DRIVER > /dev/null 2>&1
|
usleep 7000000
|
||||||
|
fi
|
||||||
|
|
||||||
|
# sleep another 3sec. to for irserver loading
|
||||||
|
usleep 3000000
|
||||||
|
LCDd -c $LCD_CONFIG -d $LCD_DRIVER > /dev/null 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
Loading…
x
Reference in New Issue
Block a user