Skip to content

Commit

Permalink
fix inittab parsing when some lines are commented
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Crozat committed Mar 10, 2010
1 parent 4f54e3d commit 3d2f331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootchartd
Expand Up @@ -151,7 +151,7 @@ start()
# Wait for the boot process to end.
wait_boot()
{
local runlevel=$( sed -n 's/.*:\(.*\):initdefault:.*/\1/gp' /etc/inittab )
local runlevel=$( sed -n '/^ *#/d; /^$/d; s/.*:\(.*\):initdefault:.*/\1/g; p; q' /etc/inittab )

# The processes we have to wait for
local exit_proc="kdm_greet xterm konsole gnome-terminal metacity mutter compiz ldm icewm-session"
Expand Down

0 comments on commit 3d2f331

Please sign in to comment.