1 --- bootchart-0.9/script/bootchartd 2006-12-05 23:34:46.817310332 +0200
2 +++ bootchart-0.9/script/bootchartd 2006-12-08 13:35:59.820678167 +0200
5 # Make sure only a single instance is running
6 [ -f "$BOOTLOG_LOCK" ] && return
9 # Mount the temporary file system for log file storage. If possible,
10 # a temporary directory is created. In most cases though (i.e. during
11 # boot), a tmpfs is mounted in /mnt. The mount point is immediately
18 # Wait for /proc to be mounted
19 while [ ! -f /proc/stat ]; do sleep $SAMPLE_PERIOD; done
24 echo "Starting bootchart logging"
27 - # Optionally, an alternative init(1) process may be specified using
28 - # the kernel command line (e.g. "bootchart_init=/sbin/initng")
31 - if [ "${i%%=*}" = "bootchart_init" ]; then
35 + # With 2.6.18 i had this in environment!
36 + if [ -n "$bootchart_init" ]; then
37 + init=$bootchart_init
43 + # get the cmdline from /proc/cmdline
44 + if [ ! -f /proc/cmdline ]; then
45 + mount -n -t proc none /proc
48 + cmdline=$(cat /proc/cmdline)
49 + if [ "$UMOUNT_PROC" = yes ]; then
56 + # Optionally, an alternative init(1) process may be specified using
57 + # the kernel command line (e.g. "bootchart_init=/sbin/initng")
58 + for i in $cmdline; do
59 + if [ "${i%%=*}" = "bootchart_init" ]; then
70 killall -USR1 bootchartd
73 - echo $"Usage: $0 {init|start|stop}"
74 + # Source function library
75 + . /etc/rc.d/init.d/functions
77 + msg_usage "$0 {init|start|stop}"