Hello Everybody!
I like playing with linux
now finally I've got a successtory too... after I read the Bash-prompt-HOWTO (check my signature) I knew it is possible to do some nice things with just simple echo commands too, like printing colorfull text on custom places on screen. Then I decided to implement this in my bootscripts of my fresh Linux From Scratch install to create a text mode progress bar on boot. After messing up my bootscripts many times, I did it! I added some code in the main runlevel script (/etc/rc.d/init.d/rc) wich counts the number of scripts to execute in the new runlevel, after wich it calculates the step with wich the progressbar would advance after each script. From within the rc script, all other scripts are called, so after each script call, I execute a function wich updates the progress bar. I added the function to the general functions file (/etc/rc.d/init.d/functions). This function clears the top three lines, print a border, the runlevel wich is entered, and the progress bar within the border
However I'm not completely finished yet. Some processes wich are started generate too much output so the screen will scroll wich scrolls the progress bar out of sight, and it gets visible again after the script completes. I'm planning to reduce the ouput to just <scriptname> with (OK) or (FAILURE), wich is cleaner to look at anyway. I will also implement a bootlog wich contains all info, but that's for later on, since I know everything runs smoothly now
If someone is interrested I can upload the modifications I made to the scripts so far, however I do not currently have access to the LFS laptop, so that will be tomorrow than... or I can rewrite them from what I remeber of last night, but I think this will render your system useless
Greetz,
-= iluvatar =-