Check for single-user mode
Brought to you by:
kwidholm
I have not yet installed AppleJack, since I'm a little nervous about it, but I extracted the archive so I can look at the shell script.
The script does not currently look to see if it is in single-user mode or not, and the docs I read said that it must not be run if not in single-user mode.
I wanted to suggest that AppleJack check it's current runlevel with who -r
:
$who -r
. run-level 3
I can be reached at rlaska a-t g m a i l d*t com
Thank you
I prefer "test
sysctl -n kern.singleuser
= 1" for this. The who(1) man page on Snow declares: "-r Print the current runlevel. This is meaningless on Mac OS X."