Is there a way to detect single-user mode in OSX (Lion, specifically) from the command line?
I've tried who -r, which returns 3 in either standard or single-user mode.
I've also tried nvram boot-args, which does not work either.
Google isn't helping much with this...