From 11a38be6fa7d54663f8b350ae7346c5faab91b53 Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Thu, 8 Aug 2024 01:39:11 +0200 Subject: [PATCH] Improve OS detection for latest Raspberry Pi OS --- airgeddon.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/airgeddon.sh b/airgeddon.sh index e5fad69b3..5fca8cef3 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -15230,7 +15230,11 @@ function detect_distro_phase1() { if uname -a | grep -i "${i}" > /dev/null; then possible_distro="${i^}" if [ "${possible_distro}" != "Arch" ]; then - distro="${i^}" + if [[ "$(uname -a)" =~ [Rr]pi ]]; then + distro="Raspberry Pi OS" + else + distro="${i^}" + fi break else if uname -a | grep -i "aarch64" > /dev/null; then @@ -15279,7 +15283,7 @@ function detect_distro_phase2() { elif [[ "${extra_os_info}" =~ [Pp]arrot ]]; then distro="Parrot arm" is_arm=1 - elif [[ "${extra_os_info}" =~ [Dd]ebian ]] && [[ "$(uname -a)" =~ [Rr]aspberry ]]; then + elif [[ "${extra_os_info}" =~ [Dd]ebian ]] && [[ "$(uname -a)" =~ [Rr]aspberry|[Rr]pi ]]; then distro="Raspberry Pi OS" is_arm=1 fi