[vdr] 10/12: Install example switch-tty.conf for systemd

Tobias Grimm tiber-guest at moszumanska.debian.org
Sun Aug 30 16:17:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

tiber-guest pushed a commit to branch e-tobi
in repository vdr.

commit 573f055179d4c344d5ef5587cc98d6d2bbc98605
Author: etobi <git at e-tobi.net>
Date:   Sun Aug 30 12:25:15 2015 +0200

    Install example switch-tty.conf for systemd
---
 debian/README.Debian   | 10 ++++++++++
 debian/switch-tty.conf |  8 ++++++++
 debian/vdr.install     |  1 +
 3 files changed, 19 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
index 1819f35..502e5e5 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -11,6 +11,15 @@ KEYB_TTY="<CONSOLE>"
     will automatically switch to this console.
 
     NOTE: This setting only works with the SysVinit-Script.
+    For systemd copy /usr/share/doc/vdr/examples/switch-tty.conf to
+    /etc/systemd/system/vdr.service.d/
+
+    e.g.:
+
+    sudo mkdir -p /etc/systemd/system/vdr.service.d/ && \
+    sudo cp /usr/share/doc/vdr/examples/switch-tty.conf /etc/systemd/system/vdr.service.d/ && \
+    sudo systemctl daemon-reload && \
+    sudo systemctl restart vdr
 
 KEYB_TTY_SWITCH=<0|1>
 
@@ -20,6 +29,7 @@ KEYB_TTY_SWITCH=<0|1>
     on startup.
 
     NOTE: This setting only works with the SysVinit-Script.
+    Seen the note above for setting this up for systemd.
 
 SHUTDOWNCMD="<COMMAND>"
 
diff --git a/debian/switch-tty.conf b/debian/switch-tty.conf
new file mode 100644
index 0000000..3caac1b
--- /dev/null
+++ b/debian/switch-tty.conf
@@ -0,0 +1,8 @@
+[Unit]
+Conflicts=getty at tty8.service
+
+[Service]
+StandardInput=tty
+TTYPath=/dev/tty8
+ExecStartPre=/bin/chvt 8
+ExecStartPre=/usr/bin/setterm --clear all --cursor off
diff --git a/debian/vdr.install b/debian/vdr.install
index b581156..45b9690 100644
--- a/debian/vdr.install
+++ b/debian/vdr.install
@@ -8,6 +8,7 @@ var/lib/vdr/scr.conf                    etc/vdr/
 var/lib/vdr/sources.conf                etc/vdr/
 var/lib/vdr/svdrphosts.conf             etc/vdr/
 var/lib/vdr/*.conf                      usr/share/doc/vdr/examples/
+debian/switch-tty.conf                  usr/share/doc/vdr/examples/
 
 epg2html                                usr/lib/vdr/
 debian/runvdr                           usr/lib/vdr/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr.git



More information about the pkg-vdr-dvb-changes mailing list