Package: isdnutils-base
Version: 1:3.9.20060704-3.6
Severity: important
I would like to use isdnlog only but the init script exits before
starting isdnlog...
The init script /etc/init.d/isdnutils uses some functions defined in
/etc/isdn/init.d.functions. Here sometimes log_success_msg() is
called with an empty line:
#/etc/isdn/init.d.functions
-----8<-----
check_isdncards() {
....
if [ $# -eq 0 -a "$do_what" != stop ]; then
--> log_success_msg " "
log_success_msg " no ISDN cards configured! Please configure
'hisax' module with modconf"
log_success_msg " Read
/usr/share/doc/isdnutils-base/README.HiSax.gz for more information"
log_success_msg " (e.g. with 'zless
/usr/share/doc/isdnutils-base/README.HiSax.gz')."
exit 0
fi
....
}
----->8-----
or here
-----8<-----
start_devices() {
....
if [ -z "$DEVS" -a ! -f /etc/isdn/noconfig ]; then
log_success_msg " There is apparently no configuration created yet."
log_success_msg " You can create configuration files with the
'isdnconfig' tool."
--> log_success_msg " "
log_success_msg " If you don't want this warning in future, please
create the file"
log_success_msg " /etc/isdn/noconfig"
log_success_msg " For more information, see
/usr/share/doc/isdnutils-base/HOWTO.isdnutils.gz"
fi
....
}
----->8-----
At least for the second example, the script prints out only the first two lines.
It seems that log_success_msg() exits in this special case:
#/lib/lsb/init_functions
-----8<-----
log_success_msg () {
if [ -n "${1:-}" ]; then
--> log_begin_msg $@
fi
log_end_msg 0
}
....
log_begin_msg () {
if [ -z "${1:-}" ]; then
--> return 1
fi
echo -n "$@"
}
----->8-----
I don't know why log_begin_msg() handles this case in that way, perhaps the
real
bug might be here.
Otherwise I suggest simply to remove the empty calls to log_success_msg(). After
removing these lines or alternatively creating /etc/isdn/noconfig, isdnlog
starts fine on my system.
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.4-xen (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages isdnutils-base depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii makedev 2.3.1-88 creates device files in /dev
isdnutils-base recommends no packages.
Versions of packages isdnutils-base suggests:
pn ipppd <none> (no description available)
ii isdnlog 1:3.9.20060704-3.6 ISDN connection logger
pn isdnutils-doc <none> (no description available)
pn isdnutils-xtools <none> (no description available)
pn isdnvboxclient <none> (no description available)
pn isdnvboxserver <none> (no description available)
-- debconf information:
isdnutils/firmwarecards:
isdnutils/firmware: none
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]