bitbake: toaster: startup script noweb mode

We add an option to the startup script, named "noweb" that
will start toaster without the embedded web server.

This is useful to start the system for build-only environments,
where the web server code is running on a different machine.

(Bitbake rev: c39838201301b9732581288a93783400bebe6591)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN 2014-06-03 16:26:14 +01:00 committed by Richard Purdie
parent 89fe052949
commit 05cf6fe0ff
1 changed files with 5 additions and 1 deletions

View File

@ -146,11 +146,15 @@ else
fi fi
NOTOASTERUI=0 NOTOASTERUI=0
WEBSERVER=1
for param in $*; do for param in $*; do
case $param in case $param in
noui ) noui )
NOTOASTERUI=1 NOTOASTERUI=1
;; ;;
noweb )
WEBSERVER=0
;;
esac esac
done done
@ -176,7 +180,7 @@ case $CMD in
start ) start )
start_success=1 start_success=1
addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
if ! webserverStartAll; then if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
echo "Failed ${CMD}." echo "Failed ${CMD}."
return 4 return 4
fi fi