linux-on-mac / mbpfan

A simple daemon to control fan speed on all MacBook/MacBook Pros (probably all Apple computers) for Linux Kernel 3 and newer
https://ineed.coffee/projects/mbpfan
GNU General Public License v3.0
875 stars 138 forks source link

Ensure lib/modules-load.d exists before installing there #258

Closed jackkamm closed 1 year ago

jackkamm commented 1 year ago

If $(DESTDIR)/lib/modules-load.d does not exist yet, then mbpfan.depend.conf gets installed with that file name, instead of to $(DESTDIR)/lib/modules-load.d/mbpfan.depend.conf. This patch fixes the problem by ensuring the folder exists first.

Patch from AUR [1], I am the packager there. Followup to [2]. See also [3].

[1] https://aur.archlinux.org/cgit/aur.git/commit/?h=mbpfan-git&id=03288aa0926e980fbd456665047a4bda5fc9c5fd [2] https://github.com/linux-on-mac/mbpfan/pull/253 [3] https://github.com/linux-on-mac/mbpfan/issues/255

gaul commented 1 year ago

Thank you for your contribution @jackkamm!