diff options
Diffstat (limited to 'meta/packages/ubootchart/files')
-rw-r--r-- | meta/packages/ubootchart/files/pass-args.patch | 21 | ||||
-rw-r--r-- | meta/packages/ubootchart/files/sysvinit.patch | 12 | ||||
-rw-r--r-- | meta/packages/ubootchart/files/ubootchart-stop | 3 | ||||
-rw-r--r-- | meta/packages/ubootchart/files/ubootchart.desktop | 6 |
4 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/ubootchart/files/pass-args.patch b/meta/packages/ubootchart/files/pass-args.patch new file mode 100644 index 000000000..9ad4282f2 --- /dev/null +++ b/meta/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/packages/ubootchart/files/sysvinit.patch b/meta/packages/ubootchart/files/sysvinit.patch new file mode 100644 index 000000000..de9fb0b17 --- /dev/null +++ b/meta/packages/ubootchart/files/sysvinit.patch @@ -0,0 +1,12 @@ +Index: ubootchart.conf +=================================================================== +--- ubootchart.conf (revision 9) ++++ ubootchart.conf (working copy) +@@ -1,6 +1,6 @@ + + # If you want to chain on and run somthing other than /sbin/init... +-export init_prog=/sbin/init ++export init_prog=/sbin/init.sysvinit + + # On startup ubootchart will mount a tmpfs filesystem at this + # location and chdir here. This is only used for the logging of diff --git a/meta/packages/ubootchart/files/ubootchart-stop b/meta/packages/ubootchart/files/ubootchart-stop new file mode 100644 index 000000000..3444069c9 --- /dev/null +++ b/meta/packages/ubootchart/files/ubootchart-stop @@ -0,0 +1,3 @@ +#! /bin/sh + +kill -USR1 $(pidof ubootchartd_bin) diff --git a/meta/packages/ubootchart/files/ubootchart.desktop b/meta/packages/ubootchart/files/ubootchart.desktop new file mode 100644 index 000000000..5552b3bc6 --- /dev/null +++ b/meta/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; |