Re: running scripts before x-server starts



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?

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer@xxxxxxxxxxxxxx) +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/ +61-428-957160 (mob)


--
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: 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)
  • Re: running scripts before x-server starts
    ... GRUB options were selected. ... Finding the right script to do it in is only half the solution: ... separate set of rc's.. ...
    (Ubuntu)