VladoW n00b

Joined: 21 Dec 2003 Posts: 1
|
Posted: Sun Dec 21, 2003 11:05 pm Post subject: virtual runlevels again |
|
|
I would like to have two different runlevels, online and offline.
The online differs to offline - it contains sshd, apache, etc ..
I want to get start my comuter automatically - without any user's selections ..
How is possible to call one of these runlevels automatically depending on the situation:
if network cable plugged in, or not ?
(1) I can set runlevel as parameter to lilo or grub and then use it in inittab, but this is not
automatic.
(2) I can copy simlinks from /etc/runlevels/online to /etc/runlevels/default depending
on return of mii-tool, but this is (I think) very ugly solution
(3) I can use ifplugd os quickswitch, but I have problem if to run or not run sshd and other services.
(4) I havent's find any suitable solution to my problem. Can you help me please ?
(5) I can have only one script in default runlevel, and call /sbin/rc offline and /sbin/rc offlinefrom it, but this is also not very nice .. |
|