summarylogtreecommitdiffstats
path: root/vdr.install
diff options
context:
space:
mode:
authorM0Rf302016-01-19 02:38:38 +0100
committerM0Rf302016-01-19 02:38:38 +0100
commit5cb2e9a7aa86609066fd6614662b12f143e8a204 (patch)
tree8203525132018f93bb2229ada776af9711d2fc14 /vdr.install
parent6d1fad3091bdd0c5eb7553d54b19fb389653b588 (diff)
downloadaur-5cb2e9a7aa86609066fd6614662b12f143e8a204.tar.gz
updated to 2.3.1
Diffstat (limited to 'vdr.install')
-rw-r--r--vdr.install42
1 files changed, 42 insertions, 0 deletions
diff --git a/vdr.install b/vdr.install
new file mode 100644
index 000000000000..553539b766a1
--- /dev/null
+++ b/vdr.install
@@ -0,0 +1,42 @@
+_common() {
+ if diff /etc/skel/.xinitrc /home/vdr/.xinitrc > /dev/null 2>&1 ||
+ [ ! -e /home/vdr/.xinitrc ]; then
+
+ cat <<'EOF' > /home/vdr/.xinitrc
+#!/bin/sh
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+
+if [ -d /etc/X11/xinit/xinitrc.d ]; then
+ for f in /etc/X11/xinit/xinitrc.d/*; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# ...or the Window Manager of your choice
+kill -STOP "$$" # Comment this when using a window manager
+EOF
+ fi
+}
+
+post_install() {
+ #Add vdr user
+ systemd-sysusers
+
+ # systemd-sysusers doesn't create our homedirectory...
+ mkdir -m 0711 -p /home/vdr
+ chown vdr:vdr /home/vdr
+
+ _common
+}
+
+post_upgrade() {
+ echo "Remember!! VDR has to run after all DVB devices are initialized"
+ echo "To generate a template rule for systemd run 'vdr-gensddropin"
+} \ No newline at end of file