conditional inittab

Guenter lists at gknw.net
Tue May 5 20:32:55 UTC 2009


Hi all,
here's what I want to do:
boot via PXE and have a PXE boot menu where I can select between boot
with console=vga and console=ttyS0. Now the problem is when the system
comes up I would need two different entries in inittab: one for normal
tty1 and one for ttyS0. The prob is that I cant have both entries in
inittab because then I get permanently error messages on my console like
'cant open /dev/ttyX'. For an ash script it seems no prob to determine
the console from /proc/cmdline, but how can I do such for inittab?
Probably in inittab make a call to an ash script which rewrites inittab
depending on used console, and then make init somehow re-read inittab?
Is such possible?
Perhaps anyone here has an idea how I can best solve this?

thanks, Guen.



More information about the busybox mailing list