Jump to content

No /etc/rc -- can't create login hooks/can't write startup scripts


5 posts in this topic

Recommended Posts

Hi. So, like many others, I use a PS/2 keyboard with a USB mouse. I have a spare USB keyboard that I can use to load and unload the appropriate kernel extensions (kext), but what I don't have is an /etc/rc file that I can add the load/unload commands to. That's right -- there's no /etc/rc file in my install. This wasn't such a problem at first; I figured I'd use the login hooks method of loading a script at login, but this didn't work either, no matter how I did the login hook. And yes, the script is executable.

 

If I don't have an /etc/rc file, what am I supposed to do? Is there anywhere else I could put a script to execute at root that doesn't involve /etc/rc or login hooks?

2 options:

 

1.- you can create rc, or rc.login no matter they don't exist, if you create them they will executed.

 

2.- you can delete ApplePS2Mouse.kext inside Plugins folder of ApplePS2Controller.kext

You're wonderful. Thanks for your help. I tried creating an rc file but wasn't sure what to put in it. I put in just the two lines of code that I needed and it did not work, but...

 

I moved the ApplePS2Mouse.kext and ApplePS2Trackpad.kext files and it works!

 

Thank you so much!

  • 1 year later...
2 options:

 

1.- you can create rc, or rc.login no matter they don't exist, if you create them they will executed.

 

2.- you can delete ApplePS2Mouse.kext inside Plugins folder of ApplePS2Controller.kext

 

Could someone give me commands to do #2?

 

My keyboard doesn't work and #1 failed.

 

 

Thanks

 

Solution:

PS/2 Keyboard and USB Mouse - disable 2 kexts as follows:

Boot your install DVD and go into the installer. Select Terminal in the Utilities menu and type:

 

CODE:

cd "/Volumes/(name-of-OSX-partition)" <--- use quotes if name has spaces

- but don't use parentheses

cd System/Library

rm -rf Extensions.mkext Extensions.kextcache

cd Extensions/ApplePS2Controller.kext/Contents/PlugIns

mv ApplePS2Trackpad.kext ApplePS2Trackpad.kext.bak

mv ApplePS2Mouse.kext ApplePS2Mouse.kext.bak

 

Quit Terminal and the Installer and Reboot without the DVD

×
×
  • Create New...