Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#73 Check for single-user mode

open
nobody
5
2012-10-09
2008-10-25
Anonymous
No

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

Discussion

  • gshenaut
    gshenaut
    2010-03-17

    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."