running scripts before x-server starts
Lev Lafayette
lev at ivt.com.au
Tue Jul 31 02:12:54 UTC 2007
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
More information about the ubuntu-users
mailing list