From 59ec7005c6e68fbf37cc1a6d5731ac49c3918ae0 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 6 Oct 2024 14:43:01 +0500 Subject: [PATCH] Fix launch on Batocera On Batocera only root user --- data_from_portwine/scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 4a067ed1..0767c1ca 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -16,7 +16,7 @@ echo ' ' $PW_DEBUG -if [[ $(id -u) = 0 ]] ; then +if [[ $(id -u) = 0 ]] && [[ ! -e "/userdata/system/batocera.conf" ]] ; then echo "Do not run this script as root!" exit 1 fi