diff options
Diffstat (limited to 'meta/packages/ubootchart/files/pass-args.patch')
-rw-r--r-- | meta/packages/ubootchart/files/pass-args.patch | 21 |
1 files changed, 21 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 0000000000..9ad4282f21 --- /dev/null +++ b/meta/packages/ubootchart/files/pass-args.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Index: ubootchartd | ||
2 | =================================================================== | ||
3 | --- ubootchartd (revision 9) | ||
4 | +++ ubootchartd (working copy) | ||
5 | @@ -7,9 +7,11 @@ | ||
6 | # can read. | ||
7 | . /etc/ubootchart/ubootchart.conf | ||
8 | |||
9 | -#################################################### | ||
10 | -# Now start capturing the stats: | ||
11 | -#################################################### | ||
12 | -/sbin/ubootchartd_bin & | ||
13 | -exec $init_prog | ||
14 | +if [ $$ -eq 1 ]; then | ||
15 | + #################################################### | ||
16 | + # Now start capturing the stats: | ||
17 | + #################################################### | ||
18 | + /sbin/ubootchartd_bin & | ||
19 | +fi | ||
20 | |||
21 | +exec $init_prog "$@" | ||