From 76c342d13f759dd0df77f61f8aaf8996f046ebb4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 12 Sep 2011 19:23:40 +0200 Subject: [PATCH] Revert "lcdproc: start init scripts on RUNLEVEL=boot" This reverts commit a839b0b65ad408c8832ade12182b1cf031626a28. --- packages/sysutils/lcdproc/init.d/63_lcdproc | 47 +++++++++------------ 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/packages/sysutils/lcdproc/init.d/63_lcdproc b/packages/sysutils/lcdproc/init.d/63_lcdproc index d45942dc19..f8bcf55c73 100644 --- a/packages/sysutils/lcdproc/init.d/63_lcdproc +++ b/packages/sysutils/lcdproc/init.d/63_lcdproc @@ -22,35 +22,28 @@ # # runlevels: openelec, textmode -case $RUNLEVEL in - boot) - ( - if [ -f /var/config/settings.conf ]; then - . /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 - LCD_CONFIG="/storage/.config/LCDd.conf" - else - LCD_CONFIG="/etc/LCDd.conf" - fi - - # sleep 10sec. to for irserver loading - if [ "$LCD_DRIVER" = "irtrans" ]; then - 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 + if [ -f /storage/.config/LCDd.conf ]; then + LCD_CONFIG="/storage/.config/LCDd.conf" + else + LCD_CONFIG="/etc/LCDd.conf" fi - )& - ;; - poweroff|reboot) - ;; -esac + # sleep 10sec. to for irserver loading + if [ "$LCD_DRIVER" = "irtrans" ]; then + 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 +)&