Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a twisted use of lilo




Hi,

(i) You can make LILO set an environment variable
that can be tested by startup scripts:

append="MYAPPLICATION=app1"
or
append="MYAPPLICATION=app2"


(ii) You can set up /etc/inittab to start, say app1 at run
level 4 and app2 at runlevel 5, and then have two lilo
sections with append="4" and append ="5".

for example put in /etc/lilo.conf

image=/boot/vmlinuz-2.2.18
   label=linux-app1
   root=/dev/hda1
   append="4"
image=/boot/vmlinuz-2.2.18
   label=linux-app2
   root=/dev/hda1
   append="5"

Selva

On Sun, 5 Aug 2001, Fredric Fredricson wrote:

> 
> A question for the lilo-gurus out there:
> If I make to (almost) identical entries in 
> lilo.conf that both starts the same kernel
> would it be possible to tell which one was
> chosen in a application program?
> 
> The reason for the question is:
> I work with a linux project that automatically
> launch an application after boot. The idea
> I had was to have two options in lilo where
> one automatically launches the application 
> and the other does not (or launches another 
> application).
> 
> /Fredric


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links