diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-07 15:10:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 12:24:31 -0700 |
commit | 6b4aedc0c9bff86f868886fd86f3ae8f715ae765 (patch) | |
tree | f3d235a778405608c8850fab6d8be843f177aa6e | |
parent | bff408ad6398a58ce92984597303876f258ce07c (diff) | |
download | poky-6b4aedc0c9bff86f868886fd86f3ae8f715ae765.tar.gz |
bitbake: toaster: erase checks for stop command
We remove the checks for the stop command, since we assume
the user really means it wants to shutdown the system when
he issues the command.
[YOCTO #5376]
(Bitbake rev: 5d6594de8876be8ce4df56b846fee0fc687a6261)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/toaster | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 38e71acc2b..9c0a15ff67 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
@@ -143,25 +143,12 @@ if [ -e $BUILDDIR/bitbake.lock ]; then | |||
143 | fi | 143 | fi |
144 | 144 | ||
145 | if [ ${CMD} == "start" ] && ( [ $lock -eq 0 ] || [ -e $BUILDDIR/.toastermain.pid ] ); then | 145 | if [ ${CMD} == "start" ] && ( [ $lock -eq 0 ] || [ -e $BUILDDIR/.toastermain.pid ] ); then |
146 | echo "Error: bitbake lock state error. System is already on." 2>&1 | 146 | echo "Error: bitbake lock state error. File locks show that the system is on." 2>&1 |
147 | return 3 | 147 | echo "If you see problems, stop and then start the system again." 2>&1 |
148 | elif [ ${CMD} == "stop" ] && ( [ $lock -eq 1 ] || ! [ -e $BUILDDIR/.toastermain.pid ] ) ; then | ||
149 | echo "Error: bitbake lock state error. Trying to stop a stopped system ? | ||
150 | If you think the system is hanged up, you can try to manually stop system with the commands | ||
151 | |||
152 | # BBSERVER=localhost:8200 bitbake -m | ||
153 | |||
154 | and | ||
155 | |||
156 | # webserverKillAll | ||
157 | " 2>&1 | ||
158 | return 3 | 148 | return 3 |
159 | fi | 149 | fi |
160 | 150 | ||
161 | 151 | ||
162 | |||
163 | |||
164 | |||
165 | # Execute the commands | 152 | # Execute the commands |
166 | 153 | ||
167 | case $CMD in | 154 | case $CMD in |