summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-07 15:10:50 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-11 14:12:31 +0000
commit5d6594de8876be8ce4df56b846fee0fc687a6261 (patch)
treed6e5b38d557c16dc15b82dbf3342f4579f63acc6 /bin
parente9a8c32512bb270cda3dee4a3ed5fd22204c24bc (diff)
downloadbitbake-contrib-5d6594de8876be8ce4df56b846fee0fc687a6261.tar.gz
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] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/toaster17
1 files changed, 2 insertions, 15 deletions
diff --git a/bin/toaster b/bin/toaster
index 38e71acc2..9c0a15ff6 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -143,25 +143,12 @@ if [ -e $BUILDDIR/bitbake.lock ]; then
fi
if [ ${CMD} == "start" ] && ( [ $lock -eq 0 ] || [ -e $BUILDDIR/.toastermain.pid ] ); then
- echo "Error: bitbake lock state error. System is already on." 2>&1
- return 3
-elif [ ${CMD} == "stop" ] && ( [ $lock -eq 1 ] || ! [ -e $BUILDDIR/.toastermain.pid ] ) ; then
- echo "Error: bitbake lock state error. Trying to stop a stopped system ?
-If you think the system is hanged up, you can try to manually stop system with the commands
-
-# BBSERVER=localhost:8200 bitbake -m
-
-and
-
-# webserverKillAll
-" 2>&1
+ echo "Error: bitbake lock state error. File locks show that the system is on." 2>&1
+ echo "If you see problems, stop and then start the system again." 2>&1
return 3
fi
-
-
-
# Execute the commands
case $CMD in