aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2015-02-05 11:32:38 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2015-02-05 11:32:38 +0100
commit404e2df6281d50021905b9c6de458cb5aeaa7d40 (patch)
tree62a1ac5078256c9173c5f0bdd4f741b9f163617a /etc
parentwrong inherit in @vdr-plugin-rebuild fixed, thx to M.Dummer (diff)
downloadgentoo-vdr-scripts-404e2df6281d50021905b9c6de458cb5aeaa7d40.tar.gz
gentoo-vdr-scripts-404e2df6281d50021905b9c6de458cb5aeaa7d40.tar.bz2
gentoo-vdr-scripts-404e2df6281d50021905b9c6de458cb5aeaa7d40.zip
start x11 init script support
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/Makefile2
-rw-r--r--etc/init.d/vdr-frontend14
-rw-r--r--etc/init.d/vdr-x1115
3 files changed, 30 insertions, 1 deletions
diff --git a/etc/init.d/Makefile b/etc/init.d/Makefile
index 01666f4..35373ac 100644
--- a/etc/init.d/Makefile
+++ b/etc/init.d/Makefile
@@ -4,7 +4,7 @@ SHELL = /bin/bash
MYDIR = $(DESTDIR)/etc/init.d
SUBDIRS =
-BINS = vdr wakeup-reboot-halt
+BINS = vdr vdr-x11 vdr-frontend wakeup-reboot-halt
CONFS =
all:
diff --git a/etc/init.d/vdr-frontend b/etc/init.d/vdr-frontend
new file mode 100644
index 0000000..60cb99c
--- /dev/null
+++ b/etc/init.d/vdr-frontend
@@ -0,0 +1,14 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+command="/usr/bin/vdr-sxfe"
+command_args="--silent --fullscreen --syslog --reconnect xvdr://localhost &>/dev/null"
+pidfile="/var/run/vdr-frontend.pid"
+start_stop_daemon_args="--user vdr --group vdr --make-pidfile --background"
+
+depend() {
+ need vdr-x11
+ after vdr-x11
+}
diff --git a/etc/init.d/vdr-x11 b/etc/init.d/vdr-x11
new file mode 100644
index 0000000..a4605fa
--- /dev/null
+++ b/etc/init.d/vdr-x11
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+command="/usr/bin/X"
+command_args="-nolisten tcp :0 -quiet -br -nocursor"
+start_stop_daemon_args="--user vdr --group vdr --make-pidfile --background"
+pidfile="/var/run/vdr-x11.pid"
+
+depend() {
+ need localmount
+ after acpid
+ before vdr
+}