summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-08-20 18:01:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 12:07:42 +0100
commit9bfe460934dd9bafcfab7bdf8cbbf7ad968e9026 (patch)
tree0dfeb6ce3e580a54c190d2f8ef1236aae321efb2 /bitbake/lib/toaster
parent52a67cc958185266f1b982555cf019a8b4f10817 (diff)
downloadpoky-9bfe460934dd9bafcfab7bdf8cbbf7ad968e9026.tar.gz
bitbake: Toaster: custom start and stop actions
Toaster needs the ability to allow custom extensions to execute when Toaster is started and stopped. Toaster will look for a custom extension script in the fixtures directory and execute any applicable hooks. [YOCTO #11938] (Bitbake rev: 12a73f6914488029f2b9dd680e004fba7dde41af) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rwxr-xr-xbitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample49
1 files changed, 49 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample b/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample
new file mode 100755
index 0000000000..8c4e163161
--- /dev/null
+++ b/bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample
@@ -0,0 +1,49 @@
1#!/bin/bash
2
3# Copyright (C) 2017 Intel Corp.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License version 2 as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12# See the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18# This is sample software. Rename it to 'custom_toaster_append.sh' and
19# enable the respective custom sections.
20
21verbose=0
22if [ $verbose -ne 0 ] ; then
23 echo "custom_toaster_append.sh:$*"
24fi
25
26if [ "toaster_prepend" = "$1" ] ; then
27 echo "Add custom actions here when Toaster script is started"
28fi
29
30if [ "web_start_postpend" = "$1" ] ; then
31 echo "Add custom actions here after Toaster web service is started"
32fi
33
34if [ "web_stop_postpend" = "$1" ] ; then
35 echo "Add custom actions here after Toaster web service is stopped"
36fi
37
38if [ "noweb_start_postpend" = "$1" ] ; then
39 echo "Add custom actions here after Toaster (no web) service is started"
40fi
41
42if [ "noweb_stop_postpend" = "$1" ] ; then
43 echo "Add custom actions here after Toaster (no web) service is stopped"
44fi
45
46if [ "toaster_postpend" = "$1" ] ; then
47 echo "Add custom actions here after Toaster script is done"
48fi
49