diff --git a/start.sh b/start.sh index 404bb66..6472b62 100755 --- a/start.sh +++ b/start.sh @@ -19,7 +19,7 @@ echo "* SBBS PID [${SBBS_PID}]" if [ -n ${SBBS_PID} ]; then while [ -d /proc/${SBBS_PID} ]; do - NAME=$(cat /proc/${SBBS_PID}/cmdline |awk 'BEGIN { FS = "\0" } ;{print $1}') + NAME=$(basename $(cat /proc/${SBBS_PID}/cmdline |awk 'BEGIN { FS = "\0" } ;{print $(NF-2)}')) #echo "* SBBS NAME [${NAME}]" if [ "${NAME}" != "sbbs" -a "${NAME}" != "/mnt/lima-rosetta/rosetta" ]; then