diff options
Diffstat (limited to 'bitbake/bin/toaster')
-rwxr-xr-x | bitbake/bin/toaster | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 6969bf7f82..a6d2e92d17 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
@@ -185,11 +185,14 @@ if [ -z "$ZSH_NAME" ] && [ `basename \"$0\"` = `basename \"$BASH_SOURCE\"` ]; th | |||
185 | } | 185 | } |
186 | TOASTER_MANAGED=1 | 186 | TOASTER_MANAGED=1 |
187 | export TOASTER_MANAGED=1 | 187 | export TOASTER_MANAGED=1 |
188 | if ! webserverStartAll; then | 188 | if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then |
189 | echo "Failed to start the web server, stopping" 1>&2; | 189 | echo "Failed to start the web server, stopping" 1>&2; |
190 | exit 1; | 190 | exit 1; |
191 | fi | 191 | fi |
192 | xdg-open http://0.0.0.0:$WEB_PORT/ >/dev/null 2>&1 & | 192 | if [ $WEBSERVER -gt 0 ]; then |
193 | echo "Starting browser..." | ||
194 | xdg-open http://127.0.0.1:$WEB_PORT/ >/dev/null 2>&1 & | ||
195 | fi | ||
193 | trap trap_ctrlc SIGINT | 196 | trap trap_ctrlc SIGINT |
194 | echo "Running. Stop with Ctrl-C" | 197 | echo "Running. Stop with Ctrl-C" |
195 | while [ $RUNNING -gt 0 ]; do | 198 | while [ $RUNNING -gt 0 ]; do |