Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d88c7bb437f1a231687f3169871ec55f > files > 12

bootchart-0.14.0-1.3.git20110630.4.mga3.src.rpm

From 130d775e230636f2e15cd7f766bec7a84d6b2461 Mon Sep 17 00:00:00 2001
From: Henry Gebhardt <hsggebhardt@googlemail.com>
Date: Sat, 28 May 2011 01:22:16 +0200
Subject: [PATCH] bootchartd: Look for bootchart_init in the environment

According to bootparam(7) kernel parameters of the form "foo=bar" are
passed as environment variables, which is also what I observe on Linux
2.6.39. This patch fixes bootchartd to look for bootchart_init there,
too.
---
 bootchartd.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bootchartd.in b/bootchartd.in
index ebe9d8b..173b473 100755
--- a/bootchartd.in
+++ b/bootchartd.in
@@ -172,6 +172,7 @@ if [ $$ -eq 1 ]; then
 
 	# Optionally, an alternative init(1) process may be specified using
 	# the kernel command line (e.g. "bootchart_init=/sbin/initng")
+	[ -n "$bootchart_init" ] && init="$bootchart_init"
 	for i in $@; do
 		if [ "${i%%=*}" = "bootchart_init" ]; then
 			init="${i#*=}"