I want to identify which menu entry has been lauched in rc scripts.
So is it possible to pass any variable into my system via kernel argument?
You can read the kernel command-line out of /proc/cmdline, which is set by grub. That is the most direct way to access that data. It may even include the details you want already.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago