Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

running shell script at startup (before login)

Objective: on the Mac side of a dual-boot Intel, I want to automate running a shell script at startup that will unmount the "Untitled" Windows partition. As a single line command, the following runs correctly when invoked manually from Terminal:

/usr/sbin/diskutil unmount force disk0s3

How can I include this script in the startup sequence?

iMac Intel Core 2 Duo, white, 1.83 GHz, Mac OS X (10.5.3)

Posted on Jun 25, 2008 7:44 AM

Reply
17 replies

Jun 25, 2008 5:53 PM in response to Barney-15E

Thank you. Lingon is in fact simple to use and the right tool for the job. It was before looking at it that I assumed I would have to learn more about daemons than I wanted to. Using a lingon produced daemon, unmounting the partition is invisible to the user, unlike an Automator produced app that's launched at login and shows up momentarily in the dock... The image I'm developing is for a lab, and I'd like the user experience to be as simple as possible. This meets the need.

Thank you all for your help.

running shell script at startup (before login)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.