Re: Possible to install an IOKit driver without rebooting?
Re: Possible to install an IOKit driver without rebooting?
- Subject: Re: Possible to install an IOKit driver without rebooting?
- From: Bill Coderre <email@hidden>
- Date: Mon, 08 Oct 2012 12:00:33 -0700
This has turned into a question about kexts, not installers, and I doubt anyone here can help (maybe someone will surprise me!).
If you don't get help, ask DTS.
My guess is, "You can't," but I am only barely conversant with kext magic.
On Oct 8, 2012, at 10:22 AM, Brian Kendall <email@hidden> wrote:
> On Oct 8, 2012, at 2:56 AM, Stephane Sudre <email@hidden> wrote:
>> On Mon, Oct 8, 2012 at 6:27 AM, Brian Kendall <email@hidden> wrote:
>>> Hello,
>>>
>>> I'm working on an installer that, among other things, installs a kext for an IOKit driver. I've got it working in an installer that requires a reboot - the kext gets installed correctly and the kext cache gets rebuilt. However, I'm wondering if there's a way to do this without requiring a reboot. This installer requires 10.6 or later, so I don't have to concern myself with older versions of OS X. And if it matters, the driver doesn't actually do anything - it's a stub to prevent the default USB driver from being used. A separate daemon handles communication with the device.
>>>
>>> Unfortunately, in my googling so far I haven't found a clear answer. I've read this document: http://developer.apple.com/library/mac/#qa/qa1319/_index.html but I don't quite follow it. Is it saying that if I'm installing an IOKit kext in 10.5 or newer, I don't have to do anything other than executing `touch /System/Library/Extensions`?
>>
>> And probably loading the kext with kextload from the postinstall script.
>
> I just gave it a try, and it almost works. After running the installer without a reboot, unplugging and plugging back in my USB device will have it load with the correct driver. In this case it doesn't matter whether or not I call kextload.
>
> So the question is: how can I force OS X to update which driver its using for a device without requiring the user to unplug and plug it back in manually?
>
> - Brian
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Installer-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden