From 6cd9133a154e7fc1e1b809da68813198140620ce Mon Sep 17 00:00:00 2001 From: dw-0 Date: Wed, 31 Jul 2024 20:30:33 +0200 Subject: [PATCH] fix: detect RatOS 2.1+ as operating system and exit (#490) Signed-off-by: Dominik Willner --- kiauh.sh | 1 + scripts/utilities.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/kiauh.sh b/kiauh.sh index ad54475..35307d2 100755 --- a/kiauh.sh +++ b/kiauh.sh @@ -81,6 +81,7 @@ function kiauh_update_dialog() { done } +check_if_ratos check_euid init_logfile set_globals diff --git a/scripts/utilities.sh b/scripts/utilities.sh index ef72b8b..fa2dfe1 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -28,6 +28,21 @@ function check_euid() { fi } +function check_if_ratos() { + if [[ -n $(which ratos) ]]; then + echo -e "${red}" + top_border + echo -e "| !!! RatOS 2.1 or greater detected !!! |" + echo -e "| |" + echo -e "| KIAUH does currently not support RatOS. |" + echo -e "| If you have any questions, please ask for help on the |" + echo -e "| RatRig Community Discord: https://discord.gg/ratrig |" + bottom_border + echo -e "${white}" + exit 1 + fi +} + #================================================# #============= MESSAGE FORMATTING ===============# #================================================#