Gentoo Archives: gentoo-vdr

From: Martin Dummer <martin.dummer@×××.net>
To: gentoo-vdr@l.g.o
Subject: [gentoo-vdr] Problem with /etc/init.d/vdr after upgrade to vdr-1.7.23
Date: Sun, 12 Feb 2012 13:04:45
Message-Id: 4F37B62F.5040401@gmx.net
Hi,

after upgrading vdr from 1.7.18 to 1.7.23 the init script does not find
a workung vdr, it just ends up with a timeout, although vdr is running well.

The reason for this is that /usr/bin/svdrpsend.pl was renamed to
/usr/bin/svdrpsend and the init script functions do not respect that.

The patch at the end of this mail is one approach to correct this behaviour.

Bye,

Martin

== 8< =================================



vdr ~ # diff -Nau /usr/share/vdr/rcscript/post-start-50-svdrp.sh.orig
/usr/share/vdr/rcscript/post-start-50-svdrp.sh
--- /usr/share/vdr/rcscript/post-start-50-svdrp.sh.orig 2012-02-09
23:30:35.000000000 +0100
+++ /usr/share/vdr/rcscript/post-start-50-svdrp.sh      2012-02-12
13:35:08.751630064 +0100
@@ -51,7 +51,13 @@
 }
 
 svdrp_ready() {
-       if /usr/bin/svdrpsend.pl -d ${SVDRP_HOSTNAME} -p ${SVDRP_PORT}
quit 2>/dev/null|grep -q ^220; then
+       if [ -e /usr/bin/svdrpsend.pl ]; then
+               SVDRPSEND=/usr/bin/svdrpsend.pl
+       else
+               SVDRPSEND=/usr/bin/svdrpsend
+       fi
+
+       if $SVDRPSEND -d ${SVDRP_HOSTNAME} -p ${SVDRP_PORT} quit
2>/dev/null|grep -q ^220; then
                # svdrp open and ready
                return 0
        fi

Replies

Subject Author
Re: [gentoo-vdr] Problem with /etc/init.d/vdr after upgrade to vdr-1.7.23 Joerg Bornkessel <hd_brummy@g.o>