You are not logged in.
Let's say that when booting I edit the kernel line in grub boot screen and pass my_special_parameter at the end like:
kernel /vmlinuz26 root=/dev/md0 ro vga=773 my_special_parameter
I'll edit /etc/rc.sysinit and do some mounting IF my_special_parameter is present in kernel's boot line. So I'll have an:
if [[ my_special_parameter is there ]]; then ... fi
or something like that.
So how can i write that condition? is kernel's boot line stored somewhere, in a variable, file, /proc value? It has to be somewhere...
Thanks!
P.S. I'm not sure if I this is the right place for this subject. If not, please move it where it belongs.
Last edited by silvik (2010-10-07 06:29:15)
Offline
/proc/cmdline
Offline
wow, great! exactly what I needed!
thanks
Offline