View previous topic :: View next topic |
Author |
Message |
LightEater n00b


Joined: 10 Oct 2004 Posts: 38
|
Posted: Wed Apr 06, 2005 6:16 pm Post subject: fbsplash and scripts |
|
|
I've been playing with the latest splashutils, the text feature to be exact. I got it to display fortunes on the silent splash screen but the command used ("fortune" in this example) is executed every time the screen is repainted, that means my fortune changes quite often during boot so i figured i can put some script that would create a fortune file (like /etc/fortune) and then put "cat /etc/fortune" in my theme configuration.
The question is - where do i put and how do i construct the script generating the file in order for it to be run first during boot or last druing shutdown? _________________ I'd like to answer this question if I may in two ways: firstly in my normal voice and then in a kind of silly high-pitched whine. |
|
Back to top |
|
 |
Shazam Apprentice


Joined: 23 Nov 2004 Posts: 191 Location: Germany
|
Posted: Wed Apr 06, 2005 8:12 pm Post subject: |
|
|
well maybe try it and put an command like
Code: | echo `fortune` >> /etc/fortune |
to your /etc/conf.d/local.stop
then:
Code: | rc-update add local default |
not quite sure if you are getting what you want, or if it'll repaint the same message all over .. |
|
Back to top |
|
 |
LightEater n00b


Joined: 10 Oct 2004 Posts: 38
|
Posted: Sat Apr 09, 2005 10:24 am Post subject: |
|
|
Thanks, this does what i want, although the script gets executed a bit early and the fortune changes somewhere in the 1/3 of the shutdown process, is it possible to do that later? _________________ I'd like to answer this question if I may in two ways: firstly in my normal voice and then in a kind of silly high-pitched whine. |
|
Back to top |
|
 |
|