From: <hzu...@ra...> - 2004-03-04 21:31:50
|
On 03/04/2004 03:49:05 PM Roland Pabel wrote: >On Thursday 04 March 2004 20:09, Heiko Zuerker wrote: >> > Hi, >[...] >> > - insserv adds links in boot.d when you specify "B" as runlevel >> > (but /etc/init.d/rc doesn't understand that specifier) >> >> But you could add the functionality, or ? ;-) >> Unfortunately we need to use our system in a way, that insserv will >work >> with it. >well, insserv works, it knows about boot.d. It's the legacy >/etc/init.d/rc >file that doesn't know about it. But that shouldn't be a problem, >because >'rc' is used to switch betweeen runlevels, but the boot.d/ scripts are >not >part of any specific runlevel (and you shouldn't be able to switch to a >runlevel B). >What is that functionality you need there? I probably understood it wrong. My main concern is that insserv is able to order the scripts in boot.d, that's all. >> > I'll try to make some more changes, i.e. choosing runlevel on >startup >> > (for maintenance, unless someone adds XFree ;-)... >> >> That's good! >> I don't know how often I already needed a boot into runlevel 1. But I >> always forgett to add it to the boot menu. >I thought about this at the gym, I think I can easily code that >in /sbin/pre_init, when I can manually change inittab (replacing the >default >runlevel with sed and grep) before starting init. That's under the >assumption, that once init runs, there is no point to doing that >(otherwise, >that could be done in a boot.d/ script before entering the runlevel) Do you need to code anything? Try just to add the "1" to the kernel boot parameters in the boot menu. With a bit luck it's really that easy (should be at least) Heiko |