diff options
author | 2019-12-13 00:13:55 +0100 | |
---|---|---|
committer | 2019-12-13 00:13:55 +0100 | |
commit | 99a609c941caa4ef73a89bf86609a718c975b52b (patch) | |
tree | 8df0bf8e48aa04165e8490374eb893f090212808 /usr | |
parent | Bumped to version 2.7.5.1 (diff) | |
download | gentoo-vdr-scripts-99a609c941caa4ef73a89bf86609a718c975b52b.tar.gz gentoo-vdr-scripts-99a609c941caa4ef73a89bf86609a718c975b52b.tar.bz2 gentoo-vdr-scripts-99a609c941caa4ef73a89bf86609a718c975b52b.zip |
proj/gentoo-vdr-scripts: several fixes
- Profiles 17.1 breaks all vdr plugins by hardcoded path
reported by Raimonds Cicans on wrt bug 688174
- fails to shutdown pc for sleep on systemd,
fixed by baselayout 1 removed
reported by Mark Dominik Bürkle on wrt bug 646518
- shuts the vdr down even if nvram-wakup fails
reported by Michael Brakemeier on wrt bug 298785
Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/sbin/vdr-get-header-checksum | 2 | ||||
-rw-r--r-- | usr/share/vdr/bin/vdrrecord-gate.sh | 2 | ||||
-rw-r--r-- | usr/share/vdr/bin/vdrshutdown-really.sh | 12 | ||||
-rwxr-xr-x | usr/share/vdr/dvdchanger/dvdchanger_readdvd.sh | 2 | ||||
-rwxr-xr-x | usr/share/vdr/dvdchanger/dvdchanger_writedvd.sh | 2 | ||||
-rw-r--r-- | usr/share/vdr/rcscript/post-start-60-check-syslog-errors.sh | 2 | ||||
-rw-r--r-- | usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh | 17 |
7 files changed, 17 insertions, 22 deletions
diff --git a/usr/sbin/vdr-get-header-checksum b/usr/sbin/vdr-get-header-checksum index fa38ce4..f0846f8 100755 --- a/usr/sbin/vdr-get-header-checksum +++ b/usr/sbin/vdr-get-header-checksum @@ -33,7 +33,7 @@ verbose "Creating vdr header files checksum of ${include_dir}" plugin_dir="$(awk '/^PLUGINLIBDIR/{ print $3 }' ${include_dir}/Make.config)" if [ -n "${plugin_dir}" ]; then - plugin_dir=/usr/lib/vdr/plugins + plugin_dir="(pkg-config --variable=libdir vdr)" fi vdr_checksum_dir="${plugin_dir%/plugins}/checksums" diff --git a/usr/share/vdr/bin/vdrrecord-gate.sh b/usr/share/vdr/bin/vdrrecord-gate.sh index 8e733d5..a2a7882 100644 --- a/usr/share/vdr/bin/vdrrecord-gate.sh +++ b/usr/share/vdr/bin/vdrrecord-gate.sh @@ -13,7 +13,7 @@ if [ -z "${EXECUTED_BY_VDR_BG}" ]; then fi HOOKDIR=/usr/share/vdr/record -OLD_HOOKDIR=/usr/lib/vdr/record +OLD_HOOKDIR="(pkg-config --variable=libdir vdr)"/../record . /usr/share/vdr/inc/functions.sh diff --git a/usr/share/vdr/bin/vdrshutdown-really.sh b/usr/share/vdr/bin/vdrshutdown-really.sh index b4f2217..bdfa425 100644 --- a/usr/share/vdr/bin/vdrshutdown-really.sh +++ b/usr/share/vdr/bin/vdrshutdown-really.sh @@ -1,8 +1,9 @@ #!/bin/sh # $Id$ # Author: -# Matthias Schwarzott <zzam@gmx.de> -# Various other contributors from gentoo.de +# Matthias Schwarzott <zzam@gmx.de> +# Joerg Bornkessel <hd_brummy@gentoo.org> +# Various other contributors from gentoo.de # # some ideas from ctvdr's shutdownvdr by Tobias Grimm <tg@e-tobi.net> # @@ -43,7 +44,9 @@ VDR_TIMER_CHANNEL="${3}" VDR_TIMER_FILENAME="${4}" VDR_USERSHUTDOWN="${5}" -: ${SHUTDOWN_DEFAULT_RETRY_TIME:=10} +# include this to override the default shutdown_default_retry_time +. /etc/conf.d/vdr.shutdown +: ${SHUTDOWN_DEFAULT_RETRY_TIME:=5} if [ "${DEBUG}" -ge 1 ]; then exec </dev/null >/tmp/vdrshutdown-really.log 2>&1 @@ -58,6 +61,7 @@ fi svdrp_send() { ${SVDRPCMD} "$@" + logger -t mesg -p user.warn "$*" } mesg() { @@ -224,7 +228,7 @@ if is_shutdown_aborted; then mesg "No Shutdown: ${ABORT_MESSAGE}" check_forced_shutdown_possible_next_time check_auto_retry - + exit 0 fi diff --git a/usr/share/vdr/dvdchanger/dvdchanger_readdvd.sh b/usr/share/vdr/dvdchanger/dvdchanger_readdvd.sh index 8ed0e9c..ba1cc08 100755 --- a/usr/share/vdr/dvdchanger/dvdchanger_readdvd.sh +++ b/usr/share/vdr/dvdchanger/dvdchanger_readdvd.sh @@ -21,7 +21,7 @@ svdrp_command if [[ -z ${EXECUTED_BY_VDR_BG} ]]; then VDR_BG=/usr/share/vdr/bin/vdr-bg.sh - [[ -e ${VDR_BG} ]] || VDR_BG=/usr/lib/vdr/bin/vdr-bg.sh + [[ -e ${VDR_BG} ]] || VDR_BG="$(pkg-config --variable=libdir vdr)"/../vdr-bg.sh exec "${VDR_BG}" "${0}" "${@}" exit diff --git a/usr/share/vdr/dvdchanger/dvdchanger_writedvd.sh b/usr/share/vdr/dvdchanger/dvdchanger_writedvd.sh index b6a1433..9aac168 100755 --- a/usr/share/vdr/dvdchanger/dvdchanger_writedvd.sh +++ b/usr/share/vdr/dvdchanger/dvdchanger_writedvd.sh @@ -10,7 +10,7 @@ svdrp_command if [[ -z ${EXECUTED_BY_VDR_BG} ]]; then VDR_BG=/usr/share/vdr/bin/vdr-bg.sh - [[ -e ${VDR_BG} ]] || VDR_BG=/usr/lib/vdr/bin/vdr-bg.sh + [[ -e ${VDR_BG} ]] || VDR_BG="$(pkg-config --variable=libdir vdr)"/../vdr-bg.sh exec "${VDR_BG}" "${0}" "${@}" exit diff --git a/usr/share/vdr/rcscript/post-start-60-check-syslog-errors.sh b/usr/share/vdr/rcscript/post-start-60-check-syslog-errors.sh index 8295e4b..b33d1a6 100644 --- a/usr/share/vdr/rcscript/post-start-60-check-syslog-errors.sh +++ b/usr/share/vdr/rcscript/post-start-60-check-syslog-errors.sh @@ -24,7 +24,7 @@ addon_main() { | sed '/vdr.*ERROR/!d s/^.* ERROR: /ERROR: / /unknown config parameter:/d - s#ERROR: /usr/lib/vdr/plugins/#ERROR: loading plugin # + s#ERROR: "$(pkg-config --variable=libdir vdr)"/#ERROR: loading plugin # ' \ | while read line; do count=$(($count+1)) diff --git a/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh b/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh index 5783cb3..99463e9 100644 --- a/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh +++ b/usr/share/vdr/shutdown/pre-shutdown-90-systohc.sh @@ -1,24 +1,15 @@ -# $Id$ -if [ ! -f /etc/init.d/sysfs ]; then -# Baselayout 1 -. /etc/conf.d/clock - else # Baselayout 2 . /etc/conf.d/hwclock -fi - do_systohc() { - hwclock --systohc + hwclock --systohc } if yesno "${SHUTDOWN_SYSTOHC:-no}"; then - if [ ${CLOCK_SYSTOHC:=no} == "no" ] || [ ${clock_systohc:=NO} == "NO" ] ;then - - do_systohc - - fi + if [ ${CLOCK_SYSTOHC:=no} == "no" ] || [ ${clock_systohc:=NO} == "NO" ] ;then + do_systohc + fi fi |