running scripts before x-server starts

Glenn Holmer gholmer at ameritech.net
Tue Jul 31 09:04:14 UTC 2007


On Monday 30 July 2007 21:12, Lev Lafayette wrote:
> > The orginal poster wants to do stuff in those scripts depending on
> > what GRUB options were selected.
> >
> > Finding the right script to do it in is only half the solution: How
> > is information passed out of GRUB about what options were selected?
>
> Hmmm... Normally that isn't possible, because GRUB merely determines
> what image to boot and the rc's are independent of that.

Sure it is, SUSE does it in their profile switcher.  Their GRUB screen 
has function-key options to chose one of the profiles you have set up 
with SCPM; it puts PROFILE=profilename on the kernel command line and 
it's read in a boot script (/etc/init.d/boot.scpm).

http://www.novell.com/documentation/opensuse102/index.html?page=/documentation/opensuse102/opensuse102_reference/data/cha_scpm.html

And yes, it can be used to select X configurations at boot time.  I'm 
sure something like it could be hacked up for Ubuntu as well...

-- 
"Mozilla, unlike emacs, is not an operating system."
Glenn Holmer (Q-Link: ShadowM) http://www.lyonlabs.org




More information about the ubuntu-users mailing list