nchase Posted December 5, 2007 Share Posted December 5, 2007 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? Link to comment https://www.insanelymac.com/forum/topic/74917-no-etcrc-cant-create-login-hookscant-write-startup-scripts/ Share on other sites More sharing options...
macgirl Posted December 6, 2007 Share Posted December 6, 2007 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 Link to comment https://www.insanelymac.com/forum/topic/74917-no-etcrc-cant-create-login-hookscant-write-startup-scripts/#findComment-529534 Share on other sites More sharing options...
nchase Posted December 6, 2007 Author Share Posted December 6, 2007 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! Link to comment https://www.insanelymac.com/forum/topic/74917-no-etcrc-cant-create-login-hookscant-write-startup-scripts/#findComment-529561 Share on other sites More sharing options...
macgirl Posted December 6, 2007 Share Posted December 6, 2007 Glad to know it worked, that solution is in the Genius Bar Forum Link to comment https://www.insanelymac.com/forum/topic/74917-no-etcrc-cant-create-login-hookscant-write-startup-scripts/#findComment-529739 Share on other sites More sharing options...
revan17 Posted July 10, 2009 Share Posted July 10, 2009 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 Link to comment https://www.insanelymac.com/forum/topic/74917-no-etcrc-cant-create-login-hookscant-write-startup-scripts/#findComment-1197397 Share on other sites More sharing options...
Recommended Posts