summaryrefslogtreecommitdiff
path: root/x11-drivers/displaylink-driver/files/rc-displaylink
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/displaylink-driver/files/rc-displaylink')
-rw-r--r--x11-drivers/displaylink-driver/files/rc-displaylink18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-drivers/displaylink-driver/files/rc-displaylink b/x11-drivers/displaylink-driver/files/rc-displaylink
new file mode 100644
index 0000000..ee541d4
--- /dev/null
+++ b/x11-drivers/displaylink-driver/files/rc-displaylink
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ after xdm
+}
+
+start() {
+ start-stop-daemon --start --background --chdir /usr/lib/displaylink --make-pidfile --pidfile /run/displaylink.pid --exec /usr/lib/displaylink/DisplayLinkManager
+ eend $?
+}
+
+stop() {
+ start-stop-daemon --stop --pidfile /run/displaylink.pid
+ eend $?
+}