diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rwxr-xr-x | bitbake/lib/toaster/orm/fixtures/custom_toaster_append.sh_sample | 49 |
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 | |||
21 | verbose=0 | ||
22 | if [ $verbose -ne 0 ] ; then | ||
23 | echo "custom_toaster_append.sh:$*" | ||
24 | fi | ||
25 | |||
26 | if [ "toaster_prepend" = "$1" ] ; then | ||
27 | echo "Add custom actions here when Toaster script is started" | ||
28 | fi | ||
29 | |||
30 | if [ "web_start_postpend" = "$1" ] ; then | ||
31 | echo "Add custom actions here after Toaster web service is started" | ||
32 | fi | ||
33 | |||
34 | if [ "web_stop_postpend" = "$1" ] ; then | ||
35 | echo "Add custom actions here after Toaster web service is stopped" | ||
36 | fi | ||
37 | |||
38 | if [ "noweb_start_postpend" = "$1" ] ; then | ||
39 | echo "Add custom actions here after Toaster (no web) service is started" | ||
40 | fi | ||
41 | |||
42 | if [ "noweb_stop_postpend" = "$1" ] ; then | ||
43 | echo "Add custom actions here after Toaster (no web) service is stopped" | ||
44 | fi | ||
45 | |||
46 | if [ "toaster_postpend" = "$1" ] ; then | ||
47 | echo "Add custom actions here after Toaster script is done" | ||
48 | fi | ||
49 | |||