From d0e90a0fdedeed0805f0058ec6a3158ff829e5ff Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sun, 1 Oct 2023 07:54:03 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 1ab6899..644f67b 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -2888,10 +2888,12 @@ else fi fi +clear + # Disable SELinux [[ -f /etc/selinux/config ]] && { - SELinuxStatus=$(sestatus -v | grep "SELinux status:" | grep enabled) - [[ "$SELinuxStatus" != "" ]] && echo -ne "\n${aoiBlue}# Disabled SELinux${plain}" && setenforce 0 + SELinuxStatus=$(sestatus -v | grep -i "selinux status:" | grep "enabled") + [[ "$SELinuxStatus" != "" ]] && { echo -ne "\n${aoiBlue}# Disabling SELinux${plain}\n"; setenforce 0 2>/dev/null; echo -e "\nSuccess"; } } [[ ! -d "/tmp/" ]] && mkdir /tmp @@ -2904,8 +2906,6 @@ if [[ "$loaderMode" == "0" ]]; then fi fi -clear - [[ -z "$tmpDIST" ]] && { [ "$Relese" == 'Debian' ] && tmpDIST='12' [ "$Relese" == 'Kali' ] && tmpDIST='rolling'