开发者

Modifying shutdown script

I'm looking for the location of the system script that calls /sbin/shutdown. I want to change the flags so when the machine is shutdown from the finder, it halts the machine, but doesn't power off.

Alternately, I'd like to force the setting that "Start up automatically after a power failure" checks on power applied to start the machine every time the power comes on.

Is there a way to enforce a dirty shutdown wi开发者_运维知识库thout trashing the filesystem?


In OS X, the shutdown is not done by /sbin/shutdown in a standard GUI setting.

If you want to perform something when a login or logout occurs, use login/logout hooks described here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜