summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.config2
-rw-r--r--ldetect-lst.spec1
-rw-r--r--lst/Makefile3
-rw-r--r--lst/modprobe.conf0
4 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.config b/Makefile.config
index 682dbdb7..2675a359 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -4,3 +4,5 @@ datadir = $(prefix)/share
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin
dir = $(datadir)/$(project)
+sysconfigdir=/etc
+modprobe_dir=$(sysconfdir)/modprobe.d
diff --git a/ldetect-lst.spec b/ldetect-lst.spec
index 80dfd874..29c54359 100644
--- a/ldetect-lst.spec
+++ b/ldetect-lst.spec
@@ -58,6 +58,7 @@ fi
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%{_datadir}/%{name}
+%{_sysconfdir}/modprobe.d/%{name}.conf
%{_sbindir}/*
%files devel
diff --git a/lst/Makefile b/lst/Makefile
index 6d2d39e3..d051ae2c 100644
--- a/lst/Makefile
+++ b/lst/Makefile
@@ -48,3 +48,6 @@ install: $(TMP_TABLES) $(TABLES3)
gzip -9 $(dir)/{pcitable,usbtable,dmitable}.d/90default.lst
install -m 644 ScannerDB.gz scannerconfigs Cards+ MonitorsDB isdn.db $(dir)
+
+ mkdir -p $(modprobe_dir)
+ install -m 644 modprobe.conf $(modprobe_dir)/$(project).conf
diff --git a/lst/modprobe.conf b/lst/modprobe.conf
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lst/modprobe.conf