From 25fe513953b75b0b17a203cf8eca23a764713b62 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 23 Dec 2024 12:52:52 +1100 Subject: [PATCH] Fix for startup when running under rosetta --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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