You are not logged in.

#1 2008-06-07 20:21:30

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

bootchard not working

That said, running /sbin/bootchartd init in the console gave me this:

cpf / $  sudo /sbin/bootchartd init
Starting bootchart logging
cpf / $  /sbin/bootchartd: line 124: [: 3
5: integer expression expected

So, I'm a noob with bash scripts, these are the related lnes:

123|   grep -q early_login /proc/cmdline && early_login="yes"
124|      if [ "$runlevel" -eq "2" -o "$runlevel" -eq "3" -o "$early_login" = "yes" ]; then
125|          exit_proc="mingetty agetty rungetty getty"
126|      fi

<< The second line is line 124

Is this normal? Or could this be the reason why after booting with

# (2) Arch Linux - bootchart
title Arch Linux BOOTCHART
root (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro vga=773 init=/sbin/bootchartd
initrd /kernel26.img

didn't give me any data for bootchart-render to use?

Thanks in advance...


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#2 2008-06-07 20:44:36

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: bootchard not working

I had the same problem, take a look at this thread
http://bbs.archlinux.org/viewtopic.php?id=49252

note that this

/sbin/bootchartd: line 124: [: 3
5: integer expression expected

is not a problem

bye

Offline

#3 2008-06-07 20:46:16

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: bootchard not working

i notice that bootchart-render will work only if some graphical login will start.


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2008-06-07 21:05:54

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: bootchard not working

@wonder:
look at my least post in the linked thread, I succeed in using it with my autologin from terminal cool

Last edited by _Marco_ (2008-06-07 21:06:20)

Offline

#5 2008-06-07 22:01:54

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: bootchard not working

_Marco_ wrote:

I had the same problem, take a look at this thread
http://bbs.archlinux.org/viewtopic.php?id=49252

note that this

/sbin/bootchartd: line 124: [: 3
5: integer expression expected

is not a problem

bye

Thanks a lot, that link helped smile (Couldn't find it on searching though... >.>)


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#6 2008-06-07 22:09:13

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: bootchard not working

Glad to have been of help smile

Offline

#7 2008-09-12 22:04:34

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: bootchard not working

I have found a patch for

/sbin/bootchartd: line 124: [: 3
5: integer expression expected

There is a commented #id:5:initdefault: in the default /etc/inittab file which is matched by sed together with the apropriate initdefault line. All you have to do is change line 117 in /sbin/bootchartd from

local runlevel=$( sed -n 's/.*:\(.*\):initdefault:.*/\1/gp' /etc/inittab )

to

local runlevel=$( sed -n 's/^id:\([0-9]\):initdefault:.*/\1/gp' /etc/inittab )

cheers

Offline

#8 2008-10-09 01:56:57

scooterpd
Member
Registered: 2008-09-01
Posts: 29

Re: bootchard not working

sweet.  thanks a lot jarda-wien.

Offline

#9 2008-10-27 21:24:17

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: bootchard not working

scooterpd wrote:

sweet.  thanks a lot jarda-wien.

you're welcome!

Offline

Board footer

Powered by FluxBB