Package: isdnlog
Version: 1:3.25+dfsg1-3wheezy1
Severity: normal

Dear Maintainer,

upgrading, installing etc. the isdnlog package created some messages
like

| Preconfiguring packages ...
| /tmp/isdnlog.config.126171: 40: [: -eq: unexpected operator

on the console. This is caused by

     40 if [ $status -eq 30 ]; then

since $status is not necessarily defined. Hopefully the script is
fail-safe but I'm not entirely sure about it.

See the patch attached for a simple fix. Yes, this happens with ipppd,
too.

Cheers,

    Christoph

commit b42963396a821e8d7dbf4a83281f88a0d44e3e64
Author: Christoph Biedl <debian.a...@manchmal.in-ulm.de>
Date:   Mon Dec 24 19:54:31 2012 +0100

    Avoid breakage of maintainer scripts

diff --git a/debian/ipppd.config b/debian/ipppd.config
index 33d9ae9..9d9fd50 100644
--- a/debian/ipppd.config
+++ b/debian/ipppd.config
@@ -37,6 +37,7 @@ if [ -s "/etc/isdn/device.$ipppd_if" -o -s 
"/etc/isdn/ipppd.$ipppd_if" ]; then
 fi
 
 db_input high ipppd/ispphone || true
+status=0
 db_go || status=$?
 if [ $status -eq 30 ]; then
         db_stop
diff --git a/debian/isdnlog.config b/debian/isdnlog.config
index 938a6da..68ef9a7 100644
--- a/debian/isdnlog.config
+++ b/debian/isdnlog.config
@@ -36,6 +36,7 @@ if [ -s /etc/isdn/isdn.conf ]; then
     fi
 fi
 db_input high isdnlog/country || true
+status=0
 db_go || status=$?
 if [ $status -eq 30 ]; then
        exit 1  # cancel selected

Attachment: signature.asc
Description: Digital signature

Reply via email to