Package: vdr
Version: 1.2.6-6
Severity: normal
Tags: patch
If vdr is removed but not purged the script /etc/init.d/vdr is still
present and generate the error:
/etc/init.d/vdr: line 6: /usr/lib/vdr/config-loader.sh: No such file
or directory
I propose the following patch:
--- /etc/init.d/vdr 2005-01-25 15:23:18.000000000 +0100
+++ vdr 2005-04-03 10:14:00.000000000 +0200
@@ -3,6 +3,8 @@
# vdr start-stop script
#
+test -x /usr/sbin/runvdr || exit 0
+
. /usr/lib/vdr/config-loader.sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@@ -14,8 +16,6 @@
test "$ENABLED" != "0" || exit 0
-test -x /usr/sbin/runvdr || exit 0
-
startvdr()
{
if ! ps ax | grep "/usr/bin/vdr " | grep -v grep > /dev/null
The idea is to check the presence of /usr/sbin/runvdr at the beginning
of the script and _before_ trying to read /usr/lib/vdr/config-loader.sh.
Bye,
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (90, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.6
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Versions of packages vdr depends on:
ii adduser 3.63 Add and remove users and groups
ii debconf [debconf-2.0] 1.4.41 Debian configuration management sy
ii makedev 2.3.1-77 creates device files in /dev
pn vdr-kbd | vdr-lirc | vdr-rcu Not found.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]