From 2188cf09e11398447a6e59ee8a2819877f90b45c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 5 Nov 2007 17:32:08 +0000 Subject: ubootchart: add a launcher to stop the profiling, alternatives to optionally replace /sbin/init, and cleanly pretend to be /sbin/init git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3071 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../packages/ubootchart/files/pass-args.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-extras/packages/ubootchart/files/pass-args.patch (limited to 'meta-extras/packages/ubootchart/files/pass-args.patch') diff --git a/meta-extras/packages/ubootchart/files/pass-args.patch b/meta-extras/packages/ubootchart/files/pass-args.patch new file mode 100644 index 0000000000..9ad4282f21 --- /dev/null +++ b/meta-extras/packages/ubootchart/files/pass-args.patch @@ -0,0 +1,21 @@ +Index: ubootchartd +=================================================================== +--- ubootchartd (revision 9) ++++ ubootchartd (working copy) +@@ -7,9 +7,11 @@ + # can read. + . /etc/ubootchart/ubootchart.conf + +-#################################################### +-# Now start capturing the stats: +-#################################################### +-/sbin/ubootchartd_bin & +-exec $init_prog ++if [ $$ -eq 1 ]; then ++ #################################################### ++ # Now start capturing the stats: ++ #################################################### ++ /sbin/ubootchartd_bin & ++fi + ++exec $init_prog "$@" -- cgit v1.2.3-54-g00ecf