summaryrefslogtreecommitdiff
path: root/multimedia/vdr/files/vdr.in
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vdr/files/vdr.in')
-rw-r--r--multimedia/vdr/files/vdr.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/multimedia/vdr/files/vdr.in b/multimedia/vdr/files/vdr.in
new file mode 100644
index 000000000000..b86f4609563e
--- /dev/null
+++ b/multimedia/vdr/files/vdr.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: vdr
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf[.local] to enable vdr:
+#
+# vdr_enable="YES"
+#
+# And if you are using vdr plugins etc. add those including any plugin
+# parameters to /etc/rc.conf[.local] similar to this:
+#
+# vdr_flags="'-Pxineliboutput --local=none --remote=127.1:37890' \
+# -Pfemon -Posdpip \
+# -Posdteletext --cache-system=packed --max-cache=128' \
+# -Pstreamdev-server '-Plive -i127.1' -Pepgsearch \
+# -Pinfosatepg"
+
+. /etc/rc.subr
+
+name=vdr
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/vdr"
+command_args="-d"
+
+load_rc_config ${name}
+: ${vdr_enable="NO"}
+: ${vdr_chdir="%%VIDEODIR%%"}
+
+run_rc_command "$1"