Asuro/run.sh
kieron 8424e2cf81 d
git-svn-id: https://spexeah.com:8443/svn/Asuro@136 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
2017-05-20 13:27:05 +00:00

39 lines
655 B
Bash
Executable File

#!/bin/sh
ERRCOUNT=0
echo " "
echo "======================="
echo "== ASURO OPERATION =="
echo "======================="
echo " "
echo "Running Asaro..."
if [ "$1" = "-d" ]
then
qemu-system-i386 -s -S -cdrom Asuro.iso&
sleep 1
gdb -ex "target remote localhost:1234"
else
qemu-system-i386 -monitor stdio -cdrom Asuro.iso
fi
if [ $? -ne 0 ]
then
echo "Failed to run Asaro!"
ERRCOUNT=$((ERRCOUNT+1))
else
echo "Finished Successfully."
fi
echo " "
echo "======================="
echo " "
if [ "$ERRCOUNT" -ne "0" ]
then
echo "$ERRCOUNT Errors Occurred, please review."
else
echo "No errors."
fi
echo " "
echo "======================="
echo " "