Thanks for reporting this Bug. Otavio, please see attached patches.
On 12/1/06, Ratiu Petru <[EMAIL PROTECTED]> wrote:
Package: splashy Version: 0.2.1 Followup-For: Bug #400598 RUNLEVEL is set by init(8) for all its children, but when init scripts are run interactively, the variable isn't there anymore. An alternative solution for finding the current runlevel might be the use of runlevel(8), which outputs the equivalent of "$PREVLEVEL $RUNLEVEL".
-- ----)(----- Luis Mondesi *NIX Guru "Feliz el hombre que ha hallado sabiduria y el hombre que consigue discernimiento, porque el tenerla como ganancia es mejor que tener la plata como ganancia; y el tenerla como producto, [mejor] que el oro mismo" (Prov 3:13-14).
--- ../.././tags/0.2.1/scripts/lsb-base-logging.sh 2006-10-26 07:14:19.000000000 -0400 +++ lsb-base-logging.sh 2006-12-01 21:49:14.000000000 -0500 @@ -37,6 +37,12 @@ fi fi + # Bug #400598 + if [ -z "$RUNLEVEL" ]; then + # we need only the current level + RUNLEVEL=`runlevel | sed 's/^. //'` + fi + # Start splashy code SPL_UPD=/sbin/splashy_update SPL_PRG=/lib/splashy/$RUNLEVEL-progress @@ -114,7 +120,7 @@ else splashy_chvt $CHVT_TTY fi - + # Bug #400598 # if Splashy was running from initramfs, # and our runlevel is currently a number between 2 and 5, # we need to re-run keymap.sh and console-screen.sh
--- ../.././tags/0.2.1/scripts/splashy-update-progress-steps 2006-10-26 07:14:19.000000000 -0400 +++ splashy-update-progress-steps 2006-12-01 21:52:39.000000000 -0500 @@ -58,10 +58,16 @@ set -e +# Bug #400598 +if [ -z "$RUNLEVEL" ]; then + # we need only the current level + RUNLEVEL=`runlevel | sed 's/^. //'` +fi + case "$1" in # Sounds a bit weird, but called as start will stop splashy;) start) - if [ "x$RUNLEVEL" = "xS" ]; then + if [ "x$RUNLEVEL" = "xN S" -o "x$RUNLEVEL" = "xS" ]; then log_daemon_msg "Starting $DESC" $NAME pidof splashy > /dev/null || /sbin/splashy boot log_end_msg $?