The title says it all really. I am writing a shell script for a Linux box, and I have recently run into a problem. I need to make sure I am at a certain run level first.
Hence, the question. How can I find out what run level the box is currently running at?
Is there a system variable that I've overlooked or don't know about that I can use?
Please help me as soon as possible with this, as I am trying to finish this script by today. Thanks!...........SN