mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
lcdproc: start init scripts on RUNLEVEL=boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d51f70da6a
commit
a839b0b65a
@ -22,28 +22,35 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
(
|
case $RUNLEVEL in
|
||||||
if [ -f /var/config/settings.conf ]; then
|
boot)
|
||||||
. /var/config/settings.conf
|
(
|
||||||
|
if [ -f /var/config/settings.conf ]; then
|
||||||
|
. /var/config/settings.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
|
if [ -f /storage/.config/LCDd.conf ]; then
|
||||||
LCD_CONFIG="/storage/.config/LCDd.conf"
|
LCD_CONFIG="/storage/.config/LCDd.conf"
|
||||||
else
|
else
|
||||||
LCD_CONFIG="/etc/LCDd.conf"
|
LCD_CONFIG="/etc/LCDd.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# sleep 10sec. to for irserver loading
|
# sleep 10sec. to for irserver loading
|
||||||
if [ "$LCD_DRIVER" = "irtrans" ]; then
|
if [ "$LCD_DRIVER" = "irtrans" ]; then
|
||||||
usleep 7000000
|
usleep 7000000
|
||||||
|
fi
|
||||||
|
|
||||||
|
# sleep another 3sec. to for irserver loading
|
||||||
|
usleep 3000000
|
||||||
|
LCDd -c $LCD_CONFIG -d $LCD_DRIVER -s true > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
)&
|
||||||
|
;;
|
||||||
|
|
||||||
# sleep another 3sec. to for irserver loading
|
poweroff|reboot)
|
||||||
usleep 3000000
|
;;
|
||||||
LCDd -c $LCD_CONFIG -d $LCD_DRIVER -s true > /dev/null 2>&1
|
esac
|
||||||
fi
|
|
||||||
fi
|
|
||||||
)&
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user