pgj / freebsd-wifibox

wifibox: Use Linux to drive your wireless card on FreeBSD
BSD 2-Clause "Simplified" License
159 stars 12 forks source link

fix(`wifibox`): be more adaptive about the location of the `vmm` kernel module #88

Closed pgj closed 7 months ago

pgj commented 7 months ago

It is not always the case that the kernel modules are located under the /boot/kernel directory. For custom kernels, that is something else (though usually somewhere within /boot) which makes the script fail to function properly.

On initialization, query the currently lodaded kernel itself about the path of its accompaining modules and use that information for finding vmm(4).

Fixes #86