diff options
| author | David Reyna <David.Reyna@windriver.com> | 2017-08-20 18:01:49 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-23 12:07:42 +0100 |
| commit | 9bfe460934dd9bafcfab7bdf8cbbf7ad968e9026 (patch) | |
| tree | 0dfeb6ce3e580a54c190d2f8ef1236aae321efb2 /bitbake/lib/toaster/orm | |
| parent | 52a67cc958185266f1b982555cf019a8b4f10817 (diff) | |
| download | poky-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/orm')
| -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 | |||
