diff options
| -rwxr-xr-x | bitbake/bin/toaster | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 40c3c35ef1..97ca17760f 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
| @@ -83,16 +83,6 @@ webserverStartAll() | |||
| 83 | return $retval | 83 | return $retval |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | # Helper functions to add a special configuration file | ||
| 87 | |||
| 88 | addtoConfiguration() | ||
| 89 | { | ||
| 90 | file=$1 | ||
| 91 | shift | ||
| 92 | echo "#Created by toaster start script" > ${BUILDDIR}/conf/$file | ||
| 93 | for var in "$@"; do echo $var >> ${BUILDDIR}/conf/$file; done | ||
| 94 | } | ||
| 95 | |||
| 96 | INSTOPSYSTEM=0 | 86 | INSTOPSYSTEM=0 |
| 97 | 87 | ||
| 98 | # define the stop command | 88 | # define the stop command |
| @@ -339,7 +329,12 @@ fi | |||
| 339 | 329 | ||
| 340 | case $CMD in | 330 | case $CMD in |
| 341 | start ) | 331 | start ) |
| 342 | addtoConfiguration toaster.conf "INHERIT+=\"toaster buildhistory\"" $TOASTER_BRBE | 332 | # Create configuration file |
| 333 | conf=${BUILDDIR}/conf/toaster.conf | ||
| 334 | echo "# Created by toaster start script" > $conf | ||
| 335 | echo "INHERIT+=\"toaster buildhistory\"" >> $conf | ||
| 336 | [ -n "$TOASTER_BRBE" ] && echo $TOASTER_BRBE >> $conf | ||
| 337 | |||
| 343 | if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then | 338 | if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then |
| 344 | echo "Failed ${CMD}." | 339 | echo "Failed ${CMD}." |
| 345 | return 4 | 340 | return 4 |
