summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2006-09-19 10:53:17 +0000
committerOlivier Blin <oblin@mandriva.com>2006-09-19 10:53:17 +0000
commit84927d374d1171ae85d024941cafcd335c24ab98 (patch)
tree9949573e0f6fd491d13b3e2f6a969e092ad0fb84
parentf9b58dd0fe17ac9d402ae258071fe38155277251 (diff)
downloadldetect-lst-84927d374d1171ae85d024941cafcd335c24ab98.tar
ldetect-lst-84927d374d1171ae85d024941cafcd335c24ab98.tar.gz
ldetect-lst-84927d374d1171ae85d024941cafcd335c24ab98.tar.bz2
ldetect-lst-84927d374d1171ae85d024941cafcd335c24ab98.tar.xz
ldetect-lst-84927d374d1171ae85d024941cafcd335c24ab98.zip
add /etc/modprobe.d/ldetect-lst.conf support
-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