diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-24 18:11:44 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-24 18:11:44 +0000 |
commit | b1da6768d7e4021d87d33d7c18b7efb8ffb1b293 (patch) | |
tree | 9ff2b8cc402803d1f75d102327e298d5fe28d0a6 /media-tv/gentoo-vdr-scripts/files | |
parent | ppc stable, bug #174514 (diff) | |
download | historical-b1da6768d7e4021d87d33d7c18b7efb8ffb1b293.tar.gz historical-b1da6768d7e4021d87d33d7c18b7efb8ffb1b293.tar.bz2 historical-b1da6768d7e4021d87d33d7c18b7efb8ffb1b293.zip |
Fixed shutdown problems of version 0.3.9.
Package-Manager: portage-2.1.2.4
Diffstat (limited to 'media-tv/gentoo-vdr-scripts/files')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1 (renamed from media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9) | 0 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff | 79 |
2 files changed, 79 insertions, 0 deletions
diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1 index 68f683dea5bd..68f683dea5bd 100644 --- a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9 +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1 diff --git a/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff b/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff new file mode 100644 index 000000000000..db85843cf4de --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff @@ -0,0 +1,79 @@ +diff -ru --ignore-matching-lines=Id --exclude=.svn tags/0.3.9/ChangeLog trunk/ChangeLog +--- tags/0.3.9/ChangeLog 2007-04-23 15:54:12.000000000 +0200 ++++ trunk/ChangeLog 2007-04-24 12:59:14.000000000 +0200 +@@ -1,5 +1,13 @@ + # ChangeLog for gentoo-vdr-scripts +-# $Id: ChangeLog 446 2007-04-23 13:54:12Z zzam $ ++# $Id: ChangeLog 448 2007-04-24 10:59:13Z zzam $ ++ ++ 24 Apr 2007; Matthias Schwarzott <zzam@gentoo.org> ++ usr/share/vdr/bin/vdrshutdown-gate.sh: ++ Added better check for usable pre-shutdown hook. ++ ++ 24 Apr 2007; Matthias Schwarzott <zzam@gentoo.org> ++ usr/share/vdr/bin/vdrshutdown-gate.sh: ++ Fixed quoting of the queued commands in shutdown-gate. + + *gentoo-vdr-scripts-0.3.9 (23 Apr 2007) + +Nur in tags/0.3.9/: gentoo-vdr-scripts-0.3.9.tar.bz2. +diff -ru --ignore-matching-lines=Id --exclude=.svn tags/0.3.9/usr/share/vdr/bin/vdrshutdown-gate.sh trunk/usr/share/vdr/bin/vdrshutdown-gate.sh +--- tags/0.3.9/usr/share/vdr/bin/vdrshutdown-gate.sh 2007-04-23 15:54:12.000000000 +0200 ++++ trunk/usr/share/vdr/bin/vdrshutdown-gate.sh 2007-04-24 13:02:58.000000000 +0200 +@@ -53,14 +53,14 @@ + + queue_add_wait() { + : ${qindex:=1} +- eval svdrpqueue_${qindex}="sleep $1" ++ eval svdrpqueue_${qindex}="\"sleep $1\"" + qindex=$((qindex+1)) + } + + svdrp_add_queue() { + : ${qindex:=1} + logger "vdrshutdown-gate sending per svdrp: $1" +- eval svdrpqueue_${qindex}="${SVDRPCMD} $1" ++ eval svdrpqueue_${qindex}="\"${SVDRPCMD} $1\"" + qindex=$((qindex+1)) + } + +@@ -136,14 +136,14 @@ + fi + } + +-shutdown_common() { ++shutdown_abort_common() { + ABORT_MESSAGE="${1}" + SHUTDOWN_ABORT="1" +- set_try_again "${SHUTDOWN_DEFAULT_RETRY_TIME}" ++ set_retry_time "${SHUTDOWN_DEFAULT_RETRY_TIME}" + } + + shutdown_abort() { +- shutdown_common "${1}" ++ shutdown_abort_common "${1}" + disable_forced_shutdown + } + +@@ -153,7 +153,7 @@ + echo FORCED: ${1} + SHUTDOWN_FORCE_COUNT=$((SHUTDOWN_FORCE_COUNT+1)) + else +- shutdown_common "${1}" ++ shutdown_abort_common "${1}" + fi + } + +@@ -222,9 +222,9 @@ + execute_hooks() { + local HOOK + for HOOK in $HOOKDIR/pre-shutdown-*.sh; do +- if [ -f "${HOOK}" ]; then +- . "${HOOK}" +- fi ++ [ -r "${HOOK}" ] || continue ++ sh -n "${HOOK}" || continue ++ . "${HOOK}" + done + } + |