Re: running scripts before x-server starts



On Tue, 2007-07-31 at 11:04 +1000, Karl Auer wrote:
On Tue, 2007-07-31 at 10:45 +1000, Lev Lafayette wrote:
im looking for a way to run a script, depending on which option
in grub i choose to run a script before xserver starts.

So modifiy the /etc/rcX.d you want (the 'X' represent runlevels). In
each directory there is files like SXXservice and KXXservice. The S
files represent startup files and the K files represent the kill
files.

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.

Under these circumstances I'd recommend Xen or some other virtualisation
software, that way the user can have a separate set of images *and* a
separate set of rc's..

HTH,


--
Lev Lafayette
Internet Vision Technologies
Level 1, 520 Dorset Road Croydon, VIC 3136
Ph: +61 3 9723 9399

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: (no subject) [er...how to get rid of hibernate hooks in grub on F7]
    ... mentioned that the script I'm looking for is now located in ... see the grub screen so that I might select the windows OS instead? ... would just be handy in case I get a kernel update, but hibernate before ... I'm wondering how I can unhook the hibenate process in Fedora 7 from the ...
    (Fedora)
  • Re: running scripts before x-server starts
    ... So modifiy the /etc/rcX.d you want (the 'X' represent runlevels). ... GRUB options were selected. ... Finding the right script to do it in is only half the solution: ...
    (Ubuntu)
  • Re: Ultimate Fedora partition scheme ?
    ... Grub was installed for this one in the ... and this is the normal default boot system. ... title Boot other linux ... Here's the save-boot script that saves the ...
    (Fedora)
  • Re: How to dual boot Suse and Slackware.
    ... to never modify a script that may be overwritten by an update. ... have a patched version of grub, ... http://gag.sourceforge.net/ and install each distributions boot loader ... or changes with one distro do not effect any other distro. ...
    (comp.os.linux.misc)
  • Re: Grub, default boot question.
    ... Back in my Debian days there was a command grub-reboot ... > that did exactly what the OP wanted but I've only seen it on Debian. ... > IIRC it was a shell script that just passed some commands to GRUB. ...
    (alt.os.linux)