Detect single-user mode from the command line 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...
$ sysctl -n kern.singleuser
0


It's 1 when booted in single-user mode, 0 when not.