Skip to main content
Home▸ Forums▸ 68kMLA▸ SE/30 soft power — #23
Post #23 by bbraun
Source Forum68kMLA
CategoryNetworking
Post DateSun, 19 Feb 2012 - 05:09
Original URLhttps://68kmla.org/bb/threads/se-30-soft-power.24655/
Post
Ok, I've read over the Shutdown Manager chapter, and think I have a solution.

This PowerOff Init registers a function with the shutdown manager to run before power off. Theoretically, this gets run after all applications have been quit, all drivers notified of shutdown, and all volumes unmounted, which *should* be safe to power off the machine. Or at least as safe as the Shutdown Manager interface provides. The function runs the same code the PowerOff app did, setting the direction on the poweroff bit, and then setting it to 0.

I don't really have a great way to test this, but the testing I did was installed the SoftPower init from earlier on my IIx, and made sure it did not shutdown with that init installed. Then installed this init, and shutdown, and it powered off successfully.

Hopefully, this should get that line toggled for you on finder shutdown.