From 4b8666e0d1a21f12f1fef4124c628b217a281af5 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 5 Mar 2012 09:56:38 -0600
Subject: udev: Add SoundGraph rules; move dvico symlinks to /remotes/

---
 abs/core/udev/81-SoundGraph.rules | 3 +++
 abs/core/udev/81-dvicoIR.rules    | 4 ++--
 abs/core/udev/PKGBUILD            | 8 ++++++--
 abs/core/udev/__changelog         | 3 +++
 4 files changed, 14 insertions(+), 4 deletions(-)
 create mode 100644 abs/core/udev/81-SoundGraph.rules

diff --git a/abs/core/udev/81-SoundGraph.rules b/abs/core/udev/81-SoundGraph.rules
new file mode 100644
index 0000000..f3f5c84
--- /dev/null
+++ b/abs/core/udev/81-SoundGraph.rules
@@ -0,0 +1,3 @@
+# Udev rules for SoundGraph receivers
+KERNEL=="event[0-9]*" , SUBSYSTEMS=="rc" , ENV(.rc_in_path)="true" 
+KERNEL=="event[0-9]*" , ATTRS{idVendor}=="15c2" , ENV(.rc_in_path)=="true" , SYMLINK+="remotes/SoundGraph"
diff --git a/abs/core/udev/81-dvicoIR.rules b/abs/core/udev/81-dvicoIR.rules
index dcaf081..8669f34 100644
--- a/abs/core/udev/81-dvicoIR.rules
+++ b/abs/core/udev/81-dvicoIR.rules
@@ -10,9 +10,9 @@ KERNEL=="event*", \
     ATTRS{manufacturer}=="Dvico", \
     ATTRS{idVendor}=="0fe9", \
     ATTRS{idProduct}=="db98", \
-    SYMLINK="input/irremote"
+    SYMLINK="remotes/dvicoDualDigital4"
 
 # This rule is for the older style USB DVICO remote dongles.
 SUBSYSTEMS=="usb", KERNEL=="hiddev*", \
     ATTRS{product}=="DVICO USB HID Remocon V1.00", \
-    SYMLINK+="usb/dvicoIR"
+    SYMLINK+="remotes/dvicoIR"
diff --git a/abs/core/udev/PKGBUILD b/abs/core/udev/PKGBUILD
index e4c1727..da51c5d 100644
--- a/abs/core/udev/PKGBUILD
+++ b/abs/core/udev/PKGBUILD
@@ -7,7 +7,7 @@
 pkgbase="udev"
 pkgname=('udev' 'udev-compat')
 pkgver=171
-pkgrel=6
+pkgrel=7
 arch=(i686 x86_64)
 url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
 license=('GPL')
@@ -21,6 +21,7 @@ source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgbase-$pkgver.ta
 	81-dvicoIR.rules
 	81-CD_DVD_symlinks.rules
 	81-SoundGraph_LCD.rules
+	81-SoundGraph.rules
 	static-audio-nodes-group.patch
 	static-nodes-permissions.patch
         cdsymlinks.sh)
@@ -58,6 +59,8 @@ package_udev() {
   install -D -m644 $srcdir/81-CD_DVD_symlinks.rules $pkgdir/lib/udev/rules.d/81-CD_DVD_symlinks.rules
   # Install SoundGraph LCD rules
   install -D -m644 $srcdir/81-SoundGraph_LCD.rules $pkgdir/lib/udev/rules.d/81-SoundGraph_LCD.rules
+  # Install SoundGraph rules
+  install -D -m644 $srcdir/81-SoundGraph.rules $pkgdir/lib/udev/rules.d/81-SoundGraph.rules
   # install cdsymlinks.sh
   install -D -m755 $srcdir/cdsymlinks.sh $pkgdir/lib/udev/cdsymlinks.sh
 
@@ -113,9 +116,10 @@ package_udev-compat() {
 md5sums=('bdf4617284be2ecac11767437417e209'
          '6ee44e3feb8e0f037947e7d4ca273f12'
          '18170020347b181b155ff5a1a8a904b4'
-         '3a920447b11744ecb1b57f0de683db93'
+         '85798a6599d4b24b68600c5f1d1f223b'
          '48845542d8250d6f2eddf07944f78014'
          '5401def23fae53db3c94e39eb2debfb4'
+         '01eeeb532e1c82a12905c67814c1dde2'
          '4f625aea95a5597afd8cdf189421f193'
          'f9e50b8dfcd2215f5423ff9bc04ecf68'
          '2e808ee78d237c478b57af2a68d43769')
diff --git a/abs/core/udev/__changelog b/abs/core/udev/__changelog
index d04728c..a23df78 100644
--- a/abs/core/udev/__changelog
+++ b/abs/core/udev/__changelog
@@ -15,3 +15,6 @@
 
 3/1/2012
 - Added 81-SoundGraph_LCD.rules
+
+3/5/2012
+- Added 81-SoundGraph.rules
-- 
cgit v0.12

