From 05cf6fe0ff0932801e20a53e716b030f553bd9d5 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 3 Jun 2014 16:26:14 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index dea69a4652..f81e6672fb 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -146,11 +146,15 @@ else fi NOTOASTERUI=0 +WEBSERVER=1 for param in $*; do case $param in noui ) NOTOASTERUI=1 ;; + noweb ) + WEBSERVER=0 + ;; esac done @@ -176,7 +180,7 @@ case $CMD in start ) start_success=1 addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf - if ! webserverStartAll; then + if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then echo "Failed ${CMD}." return 4 fi -- cgit v1.2.3-54-g00ecf