Re: running scripts before x-server starts
- From: Cameron Hutchison <lists@xxxxxxxx>
- Date: Tue, 31 Jul 2007 11:48:37 +1000
Karl Auer 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?
The simplest way is probably to parse /proc/cmdline in the script. Grub
can set arbitrary options on the kernel command line.
You can define multiple boot stanzas in /boot/grub/menu.lst with
different options in each stanza.
Run "cat /proc/cmdline" and compare the result with the contents of
/boot/grub/menu.lst to see what I mean.
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: running scripts before x-server starts
- From: Derek Broughton
- Re: running scripts before x-server starts
- References:
- running scripts before x-server starts
- From: Naja Melan
- Re: running scripts before x-server starts
- From: Matt Morgan
- Re: running scripts before x-server starts
- From: Matt Morgan
- Re: running scripts before x-server starts
- From: Lev Lafayette
- Re: running scripts before x-server starts
- From: Karl Auer
- running scripts before x-server starts
- Prev by Date: Re: Realtek HD Audio no sound (Ubuntu 7.04)
- Next by Date: Re: vmware server problems
- Previous by thread: Re: running scripts before x-server starts
- Next by thread: Re: running scripts before x-server starts
- Index(es):