Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fbsplash and scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
LightEater
n00b
n00b


Joined: 10 Oct 2004
Posts: 38

PostPosted: Wed Apr 06, 2005 6:16 pm    Post subject: fbsplash and scripts Reply with quote

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
View user's profile Send private message
Shazam
Apprentice
Apprentice


Joined: 23 Nov 2004
Posts: 191
Location: Germany

PostPosted: Wed Apr 06, 2005 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
LightEater
n00b
n00b


Joined: 10 Oct 2004
Posts: 38

PostPosted: Sat Apr 09, 2005 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum