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
1 Hi,
2
3 after upgrading vdr from 1.7.18 to 1.7.23 the init script does not find
4 a workung vdr, it just ends up with a timeout, although vdr is running well.
5
6 The reason for this is that /usr/bin/svdrpsend.pl was renamed to
7 /usr/bin/svdrpsend and the init script functions do not respect that.
8
9 The patch at the end of this mail is one approach to correct this behaviour.
10
11 Bye,
12
13 Martin
14
15 == 8< =================================
16
17
18
19 vdr ~ # diff -Nau /usr/share/vdr/rcscript/post-start-50-svdrp.sh.orig
20 /usr/share/vdr/rcscript/post-start-50-svdrp.sh
21 --- /usr/share/vdr/rcscript/post-start-50-svdrp.sh.orig 2012-02-09
22 23:30:35.000000000 +0100
23 +++ /usr/share/vdr/rcscript/post-start-50-svdrp.sh 2012-02-12
24 13:35:08.751630064 +0100
25 @@ -51,7 +51,13 @@
26 }
27
28 svdrp_ready() {
29 - if /usr/bin/svdrpsend.pl -d ${SVDRP_HOSTNAME} -p ${SVDRP_PORT}
30 quit 2>/dev/null|grep -q ^220; then
31 + if [ -e /usr/bin/svdrpsend.pl ]; then
32 + SVDRPSEND=/usr/bin/svdrpsend.pl
33 + else
34 + SVDRPSEND=/usr/bin/svdrpsend
35 + fi
36 +
37 + if $SVDRPSEND -d ${SVDRP_HOSTNAME} -p ${SVDRP_PORT} quit
38 2>/dev/null|grep -q ^220; then
39 # svdrp open and ready
40 return 0
41 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>