Jump to content

Creating a Startup Script


8 posts in this topic

Recommended Posts

Hello

 

I'm a Windows sys admin, and I can script WIndows easy, but when it comes to MacOS X I'm a completely clueless.

 

Here's the thing:

 

I'm running Kalyway 10.5.1 updated to 10.5.2 using Software Update. I have also installed Netkas's mac_kernel to make Sleep/Shutdown/Restart work on my PC (Intel C2D). The problem is that USB mass storage doesn't work properly. USB storage devices only mount if connected while starting the system up.

 

After googling I found that running the following line in Terminal mounts USB storage devices immediately (like a charm):

kextload -b com.apple.iokit.IOUSBMassStorageClass

 

I'd like to make a script from this line and run it at system startup (I read somewhere that this will make USB devices work if I do that).

 

After googling some more I found that Mac OS startup items are at /System/Library/StartupItems.

 

The problem is that I don't know how to write such a script...

 

Can anyone please help me? :D

 

Thanks a lot.

Link to comment
Share on other sites

Thank you so much!

 

This program is beautiful, easy to use and did EXACTLY what I wanted!

 

This is actually a solution to the USB mass storage problem for any Vanilla 10.5.2+Netkas user. It solves the problem completely!

Link to comment
Share on other sites

There would be another way to do it. Open AppleScript Script Editor and enter the following code:

 

do shell script "kextload -b com.apple.iokit.IOUSBMassStorageClass"

 

Them File >> Save >> Save as type Application Bundle. Then you should have a little app that will load the kext. Set this app to load at startup in Startup Items and you should be good to go!

Link to comment
Share on other sites

There would be another way to do it. Open AppleScript Script Editor and enter the following code:

 

do shell script "kextload -b com.apple.iokit.IOUSBMassStorageClass"

 

Them File >> Save >> Save as type Application Bundle. Then you should have a little app that will load the kext. Set this app to load at startup in Startup Items and you should be good to go!

 

When do i need this? Thx!

Link to comment
Share on other sites

 Share

×
×
  • Create New...