Hey,

Am Sonntag, 31. Oktober 2004 19:38 schrieb Rasmus Ory Nielsen:
>
> I'm trying to get the bootsplash graphical boot from
> www.bootsplash.org running on my thin clients.

I've made the same the last 2 nights :-)
>
> I managed to get the kernel patched and the initrd patched. So
> now I can boot my client with a nice picture in the background.
> Verbose mode works, the progress bar also works more or less. 

How have you made it with the progress bar?

I've made it like this:

/etc/myLTSPtv_functions:

function splash(){
        THEME=current
        _shutdown="no"
        _silent="no"
        test "`cat /proc/splash |grep silent`" && _silent="yes"
        progress=$1
        sscripts=42
        _procsplash="`cat /proc/splash 2>/dev/null`"
        test -r /proc/splash || exit 0
        num=$(( $sscripts + 2 ))
        function box() { true; } # ignore box descriptions in the 
config file

        test -f 
"/etc/bootsplash/themes/$THEME/config/bootsplash-`fbresolution`.cfg" 
&& \
          . /etc/bootsplash/themes/$THEME/config/bootsplash-`fbresolution`.cfg

        if [ "$text_x" != "" -a "$text_y" != "" \
                -a "$text_color" != "" -a "$text_size" != "" -a 
"$_silent" == "yes" ];
        then
                fbtruetype -x $text_x -y $text_y -t $text_color -s 
$text_size \
                                "booting ... Press F2 for verbose 
mode"
        fi

        echo "show $(( 65534 * ( $progress + 1  ) / $num ))" 
> /proc/splash
}

and then I do in the /etc/rc.sysinit:

...
. /etc/myLTSPtv_functions
splash_check=y                          #zum Testen des Progressbars 
(Bootsplash) auf y, sonst auf n
....
#after mounting the proc 

if [ $splash_check == "y" ] ; then
        let "progress+=1"
        splash "$progress"
fi
... some ltsp instructions...
if [ $splash_check == "y" ] ; then
        let "progress+=1"
        splash "$progress"
fi
... and so on

and the same in my rc.d - file
so I get a nice progress bar from this time proc is mounted.

if you have a better possibility please let me know

cu mIke
http://myltsptv.org


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to