summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-08-27 17:51:54 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-08-27 17:51:54 +0200
commit0572129b7252e5b2354460c93874053db49ad5dc (patch)
treef111b743953a22863aba84e1eac38773b2072a07
parent4eac37eb258bb9c119b9133cd102767f2dc7dbad (diff)
downloadgraphlcd-base-0572129b7252e5b2354460c93874053db49ad5dc.tar.gz
graphlcd-base-0572129b7252e5b2354460c93874053db49ad5dc.tar.bz2
add udev-rules file for displays / modules supported by graphlcd-base
-rw-r--r--99-graphlcd-base.rules8
-rw-r--r--Makefile4
2 files changed, 12 insertions, 0 deletions
diff --git a/99-graphlcd-base.rules b/99-graphlcd-base.rules
new file mode 100644
index 0000000..a9f4884
--- /dev/null
+++ b/99-graphlcd-base.rules
@@ -0,0 +1,8 @@
+#
+# all displays / modules supported by graphlcd-base
+#
+# Futaba DM140-GINK VFD displays, incl. activity 5xx
+ATTRS{idVendor}=="040b", ATTRS{idProduct}=="7001", GROUP="uucp", MODE="0660"
+ATTRS{idVendor}=="1509", ATTRS{idProduct}=="925d", GROUP="uucp", MODE="0660"
+# AX206DPF-based picture frames (modified firmware)
+ATTRS{idVendor}=="152a", ATTRS{idProduct}=="8380", GROUP="uucp", MODE="0660"
diff --git a/Makefile b/Makefile
index 2ece39f..ebfde4b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,9 @@ ARCHIVE = $(PROJECT)-$(VERSION)
PACKAGE = $(ARCHIVE)
TMPDIR = /tmp
+UDEVRULESDIR = /etc/udev/rules.d/
+UDEVRULE = "99-graphlcd-base.rules"
+
### Targets:
all:
@@ -21,6 +24,7 @@ install:
@$(MAKE) -C glcddrivers install
@$(MAKE) -C glcdskin install
@$(MAKE) -C tools install
+ test -d "${UDEVRULESDIR}" || install -m 644 -o root -g root $(UDEVRULE) $(UDEVRULESDIR)
uninstall:
@$(MAKE) -C glcdgraphics uninstall