Package: bootchart
Version: 0.9-4
Severity: normal
Tags: patch

If the bootchartd script detects the default init runlevel from inittab, it
does not ignore commented lines (e.g. #id:5:initdefault:).
The coresponding sed line should be changed to ignore commented lines.

Original upstream report:
http://sourceforge.net/tracker/index.php?func=detail&aid=1821273&group_id=124505&atid=699720

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

bootchart depends on no packages.

Versions of packages bootchart recommends:
pn  acct                          <none>     (no description available)
pn  bootchart-view                <none>     (no description available)

-- no debconf information
--- /sbin/bootchartd.orig       2006-10-06 23:56:20.000000000 +0200
+++ /sbin/bootchartd    2007-11-28 23:18:06.000000000 +0100
@@ -114,7 +114,7 @@
 # Wait for the boot process to end.
 wait_boot()
 {
-       local runlevel=$( sed -n 's/.*:\(.*\):initdefault:.*/\1/gp' 
/etc/inittab )
+       local runlevel=$( sed -n -e 's/#.*//g' -e 
's/.*:\(.*\):initdefault:.*/\1/gp' /etc/inittab )
 
        # The processes we have to wait for
        local exit_proc="gdmgreeter gdm-binary kdm_greet kdm"

Reply via email to