summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/ubootchart/files/pass-args.patch
blob: 9ad4282f217e740f1d17a08c42ca0e21e4ae5bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 "$@"