summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-07-18 19:32:28 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-07-18 19:32:28 +0000
commit7dc543e856b5441c768f0cb992ecbee2a346ebdb (patch)
tree4ebbe827bb80b17b080ceeb0012e2d716078c9a6
parentReworking fix-permission dehydrated hook. (diff)
downloadservice-tools-7dc543e856b5441c768f0cb992ecbee2a346ebdb.tar.xz
service-tools-7dc543e856b5441c768f0cb992ecbee2a346ebdb.zip
Adding linux-leds (WIP).
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rw-r--r--linux/Makefile9
-rw-r--r--linux/share/kmod/linux-leds.conf4
2 files changed, 13 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 278e7e5..09978b9 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -64,6 +64,9 @@ install: build
mkdir -p $(DESTDIR)/usr/bin
cp -r bin/* $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)/etc/modprobe.d
+ cp share/kmod/* $(DESTDIR)/etc/modprobe.d
+
mkdir -p $(DESTDIR)/lib/systemd/system
cp -r share/systemd/* $(DESTDIR)/lib/systemd/system
@@ -73,6 +76,12 @@ uninstall:
rm -f $(DESTDIR)/lib/systemd/system/$$(basename $${FILE}); \
done
+ for FILE in share/kmod/*; \
+ do \
+ rm -f $(DESTDIR)/etc/modprobe.d/$$(basename $${FILE}); \
+ done
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/modprobe.d || true
+
for FILE in bin/*; \
do \
rm -f $(DESTDIR)/usr/bin/$$(basename $${FILE}); \
diff --git a/linux/share/kmod/linux-leds.conf b/linux/share/kmod/linux-leds.conf
new file mode 100644
index 0000000..8e00229
--- /dev/null
+++ b/linux/share/kmod/linux-leds.conf
@@ -0,0 +1,4 @@
+# /etc/modprobe.d/linux-leds.conf
+
+blacklist pcengines-apuv2
+ledtrig_netdev