summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/spacenavd/files/99-space-navigator.rules-r2')
-rw-r--r--app-misc/spacenavd/files/99-space-navigator.rules-r27
1 files changed, 7 insertions, 0 deletions
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules-r2 b/app-misc/spacenavd/files/99-space-navigator.rules-r2
new file mode 100644
index 00000000000..cd501319b4e
--- /dev/null
+++ b/app-misc/spacenavd/files/99-space-navigator.rules-r2
@@ -0,0 +1,7 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+# $Id$
+
+# Start daemon on insertion of a SpaceNavigator device
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space*", RUN+="/etc/init.d/spacenavd --quiet start"
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="spacenavd.service"