diff --git a/Makefile b/Makefile
index 5c466b8..a90293d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ TESTS_PATH = tests/
TESTS_BIN = bin/mbpfan-tests
BIN = bin/mbpfan
CONF = mbpfan.conf
+DEPEND_MODULE = mbpfan.depend.conf
DOC = README.md
MAN = mbpfan.8.gz
@@ -52,6 +53,7 @@ tests: all
uninstall:
rm /usr/sbin/mbpfan
rm /etc/mbpfan.conf
+ rm /lib/modules-load.d/mbpfan.depend.conf
rm /lib/systemd/system/mbpfan.service
rm /usr/share/man/man8/mbpfan.8.gz
rm -rf /usr/share/doc/mbpfan
@@ -63,6 +65,7 @@ install: all
install -d $(DESTDIR)/usr/share/doc/mbpfan
install $(BIN) $(DESTDIR)/usr/sbin
install -m644 $(CONF) $(DESTDIR)/etc
+ install -m644 $(DEPEND_MODULE) $(DESTDIR)/lib/modules-load.d
install -m644 $(DOC) $(DESTDIR)/usr/share/doc/mbpfan
install -d $(DESTDIR)/usr/share/man/man8
install -m644 $(MAN) $(DESTDIR)/usr/share/man/man8
diff --git a/mbpfan.depend.conf b/mbpfan.depend.conf
new file mode 100644
index 0000000..77ce462
--- /dev/null
+++ b/mbpfan.depend.conf
@@ -0,0 +1 @@
+coretemp
Add coretemp as module dependency at startup
95b6ba91b9ab522cc18362e31de420ade8b3219c
heimoshuiyu <heimoshuiyu@gmail.com> · 2022-08-12T09:59 ·
browse files at this commit
parents:
7981306