summaryrefslogtreecommitdiff
path: root/meta-extras/packages/ubootchart/files
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-11-05 17:32:08 +0000
committerRoss Burton <ross@openedhand.com>2007-11-05 17:32:08 +0000
commit2188cf09e11398447a6e59ee8a2819877f90b45c (patch)
tree53ac6e0fbb0c318feef6d67b45d54f5208154ed6 /meta-extras/packages/ubootchart/files
parent378c8dbafe89e22ad8ce3463968c366c4d745d4d (diff)
downloadopenembedded-core-2188cf09e11398447a6e59ee8a2819877f90b45c.tar.gz
openembedded-core-2188cf09e11398447a6e59ee8a2819877f90b45c.tar.bz2
openembedded-core-2188cf09e11398447a6e59ee8a2819877f90b45c.tar.xz
openembedded-core-2188cf09e11398447a6e59ee8a2819877f90b45c.zip
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
Diffstat (limited to 'meta-extras/packages/ubootchart/files')
-rw-r--r--meta-extras/packages/ubootchart/files/pass-args.patch21
-rw-r--r--meta-extras/packages/ubootchart/files/ubootchart-stop3
-rw-r--r--meta-extras/packages/ubootchart/files/ubootchart.desktop6
3 files changed, 30 insertions, 0 deletions
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 000000000..9ad4282f2
--- /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 "$@"
diff --git a/meta-extras/packages/ubootchart/files/ubootchart-stop b/meta-extras/packages/ubootchart/files/ubootchart-stop
new file mode 100644
index 000000000..3444069c9
--- /dev/null
+++ b/meta-extras/packages/ubootchart/files/ubootchart-stop
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+kill -USR1 $(pidof ubootchartd_bin)
diff --git a/meta-extras/packages/ubootchart/files/ubootchart.desktop b/meta-extras/packages/ubootchart/files/ubootchart.desktop
new file mode 100644
index 000000000..5552b3bc6
--- /dev/null
+++ b/meta-extras/packages/ubootchart/files/ubootchart.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=/sbin/ubootchart-stop
+Name=Stop Bootchart
+Type=Application
+Categories=Programming;