From 7dc543e856b5441c768f0cb992ecbee2a346ebdb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 18 Jul 2022 21:32:28 +0200 Subject: Adding linux-leds (WIP). Signed-off-by: Daniel Baumann --- linux/Makefile | 9 +++++++++ linux/share/kmod/linux-leds.conf | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 linux/share/kmod/linux-leds.conf 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 -- cgit v1.2.3