Skip to content

Commit 95b6ba9

Browse files
heimoshuiyugaul
authored andcommitted
Add coretemp as module dependency at startup
1 parent 7981306 commit 95b6ba9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ TESTS_PATH = tests/
88
TESTS_BIN = bin/mbpfan-tests
99
BIN = bin/mbpfan
1010
CONF = mbpfan.conf
11+
DEPEND_MODULE = mbpfan.depend.conf
1112
DOC = README.md
1213
MAN = mbpfan.8.gz
1314

@@ -52,6 +53,7 @@ tests: all
5253
uninstall:
5354
rm /usr/sbin/mbpfan
5455
rm /etc/mbpfan.conf
56+
rm /lib/modules-load.d/mbpfan.depend.conf
5557
rm /lib/systemd/system/mbpfan.service
5658
rm /usr/share/man/man8/mbpfan.8.gz
5759
rm -rf /usr/share/doc/mbpfan
@@ -63,6 +65,7 @@ install: all
6365
install -d $(DESTDIR)/usr/share/doc/mbpfan
6466
install $(BIN) $(DESTDIR)/usr/sbin
6567
install -m644 $(CONF) $(DESTDIR)/etc
68+
install -m644 $(DEPEND_MODULE) $(DESTDIR)/lib/modules-load.d
6669
install -m644 $(DOC) $(DESTDIR)/usr/share/doc/mbpfan
6770
install -d $(DESTDIR)/usr/share/man/man8
6871
install -m644 $(MAN) $(DESTDIR)/usr/share/man/man8

mbpfan.depend.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coretemp

0 commit comments

Comments
 (0)