diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2008-07-04 11:06:09 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2008-07-04 11:06:09 +0000 |
commit | 76cc4de23f41882fe887058c20fae5979f5eb2c8 (patch) | |
tree | d57065e8b409ab54501429f6b8d26b6d9160f8f0 | |
parent | Add config-setting to disable usage of the vdr -u option. (diff) | |
download | gentoo-vdr-scripts-76cc4de23f41882fe887058c20fae5979f5eb2c8.tar.gz gentoo-vdr-scripts-76cc4de23f41882fe887058c20fae5979f5eb2c8.tar.bz2 gentoo-vdr-scripts-76cc4de23f41882fe887058c20fae5979f5eb2c8.zip |
Add setting to disable patchlevel check.
svn path=/gentoo-vdr-scripts/trunk/; revision=622
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | etc/conf.d/vdr | 6 | ||||
-rw-r--r-- | usr/share/vdr/inc/plugin-functions.sh | 4 |
3 files changed, 13 insertions, 1 deletions
@@ -1,6 +1,10 @@ # ChangeLog for gentoo-vdr-scripts # $Id$ + 04 Jul 2008; Matthias Schwarzott <zzam@gentoo.org> etc/conf.d/vdr, + usr/share/vdr/inc/plugin-functions.sh: + Add setting to disable patchlevel check. + 03 Jul 2008; Matthias Schwarzott <zzam@gentoo.org> usr/share/vdr/rcscript/pre-start-10-chuid.sh, etc/conf.d/vdr: Add config-setting to disable usage of the vdr -u option. diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr index c0fbcab..c4e43c6 100644 --- a/etc/conf.d/vdr +++ b/etc/conf.d/vdr @@ -184,6 +184,12 @@ LOG="3" # default: yes #DEVICE_CHECK="no" +# check the plugin for patchlevel compatibility with current vdr version +# it will refuse to load a not compatible plugin +# allowed values: yes no +# default: yes +PLUGIN_CHECK_PATCHLEVEL="yes" + # hostname to access vdr with svdrp # (this normaly should not be changed) # allowed values: hostname or ip-address diff --git a/usr/share/vdr/inc/plugin-functions.sh b/usr/share/vdr/inc/plugin-functions.sh index 1786cfa..1ebfa20 100644 --- a/usr/share/vdr/inc/plugin-functions.sh +++ b/usr/share/vdr/inc/plugin-functions.sh @@ -84,7 +84,9 @@ prepare_plugin_checks() { vdr_checksum_dir="${plugin_dir%/plugins}/checksums" vdr_checksum="${PL_TMP}"/header-md5-vdr PLUGIN_CHECK_MD5=no - if vdr-get-header-checksum > "${vdr_checksum}"; then + if [ "${PLUGIN_CHECK_PATCHLEVEL:-yes}" = "yes" ] && \ + vdr-get-header-checksum > "${vdr_checksum}" + then PLUGIN_CHECK_MD5=yes fi } |