aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'usr/share/vdr/rcscript')
-rw-r--r--usr/share/vdr/rcscript/post-start-50-svdrp.sh8
-rw-r--r--usr/share/vdr/rcscript/pre-start-30-parameter.sh11
2 files changed, 11 insertions, 8 deletions
diff --git a/usr/share/vdr/rcscript/post-start-50-svdrp.sh b/usr/share/vdr/rcscript/post-start-50-svdrp.sh
index c21588e..d6038f2 100644
--- a/usr/share/vdr/rcscript/post-start-50-svdrp.sh
+++ b/usr/share/vdr/rcscript/post-start-50-svdrp.sh
@@ -9,12 +9,8 @@ addon_main() {
# we already know vdr failed
[ "${vdr_start_failed}" = "1" ] && return 0
-# if [ "${VDRVERSNUM}" -ge "10715" ]; then
- SVDRP_PORT="${SVDRP_PORT:-6419}"
- logger -t vdr "New default svdrp port 6419!"
-# else
-# SVDRP_PORT="${SVDRP_PORT:-2001}"
-# fi
+ SVDRP_PORT="${SVDRP_PORT:-6419}"
+ logger -t vdr "New default svdrp port 6419!"
SVDRP_HOSTNAME="${SVDRP_HOSTNAME:-localhost}"
[ "${SVDRP_PORT}" = "0" ] && return 0
diff --git a/usr/share/vdr/rcscript/pre-start-30-parameter.sh b/usr/share/vdr/rcscript/pre-start-30-parameter.sh
index 0444635..5cbb5c9 100644
--- a/usr/share/vdr/rcscript/pre-start-30-parameter.sh
+++ b/usr/share/vdr/rcscript/pre-start-30-parameter.sh
@@ -1,10 +1,17 @@
# $Id$
+include rc-functions
+
addon_main() {
# parameters of start-stop-daemon
[ -n "${VDR_NICENESS}" ] && add_daemonctrl_param --nicelevel "${VDR_NICENESS}"
- # Set environment
- [ -n "${VDR_CHARSET_OVERRIDE}" ] && export VDR_CHARSET_OVERRIDE
+ if [ "${VDRVERSNUM}" -ge "20110" ]; then
+ # Set command line option
+ [ -n "${VDR_CHARSET_OVERRIDE}" ] && add_param "--chartab=${VDR_CHARSET_OVERRIDE}"
+ else
+ # Set environment
+ [ -n "${VDR_CHARSET_OVERRIDE}" ] && export VDR_CHARSET_OVERRIDE
+ fi
# parameters of vdr
add_param "--watchdog=${INTERNAL_WATCHDOG:-60}"