summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--led-brightness/PKGBUILD24
-rw-r--r--led-brightness/blacklist.conf4
-rw-r--r--led-brightness/tmpfiles.conf3
3 files changed, 31 insertions, 0 deletions
diff --git a/led-brightness/PKGBUILD b/led-brightness/PKGBUILD
new file mode 100644
index 0000000..53aaad8
--- /dev/null
+++ b/led-brightness/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F
+
+pkgname=usbarmory-led-brightness
+pkgver=1.0
+pkgrel=1
+pkgdesc="Replace default LED brightness with a more saner choice"
+arch=('any')
+url="https://github.com/yuvadm/usbarmory-arch"
+license=(unknown)
+source=(
+ 'blacklist.conf'
+ 'tmpfiles.conf'
+)
+sha1sums=(
+ '7c6c14dc9e7fc65b233a0f6e13d3a68d6c971b05'
+ 'e5a24d8c3fc5acf3364ba47458a4f6131b240fb4'
+)
+
+package() {
+ install -Dm644 ${srcdir}/blacklist.conf ${pkgdir}/etc/modprobe.d/led.conf
+ install -Dm644 ${srcdir}/tmpfiles.conf ${pkgdir}/etc/tmpfiles.d/led.conf
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/led-brightness/blacklist.conf b/led-brightness/blacklist.conf
new file mode 100644
index 0000000..f7a2a9e
--- /dev/null
+++ b/led-brightness/blacklist.conf
@@ -0,0 +1,4 @@
+blacklist leds_gpio
+blacklist led_class
+blacklist ledtrig_heartbeat
+
diff --git a/led-brightness/tmpfiles.conf b/led-brightness/tmpfiles.conf
new file mode 100644
index 0000000..48e5fcb
--- /dev/null
+++ b/led-brightness/tmpfiles.conf
@@ -0,0 +1,3 @@
+w /sys/class/gpio/export - - - - 123
+w /sys/class/gpio/gpio123/direction - - - - in
+