mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-09-29 01:45:50 +08:00
Update InstallNET.sh
This commit is contained in:
parent
676a582268
commit
135fea23f9
1 changed files with 10 additions and 10 deletions
|
@ -2888,16 +2888,6 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
|
||||||
|
|
||||||
# Disable SELinux
|
|
||||||
[[ -f /etc/selinux/config ]] && {
|
|
||||||
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
|
|
||||||
|
|
||||||
if [[ "$loaderMode" == "0" ]]; then
|
if [[ "$loaderMode" == "0" ]]; then
|
||||||
checkGrub "/boot/grub/" "/boot/grub2/" "/etc/" "grub.cfg" "grub.conf" "/boot/efi/EFI/"
|
checkGrub "/boot/grub/" "/boot/grub2/" "/etc/" "grub.cfg" "grub.conf" "/boot/efi/EFI/"
|
||||||
if [[ -z "$GRUBTYPE" ]]; then
|
if [[ -z "$GRUBTYPE" ]]; then
|
||||||
|
@ -2906,6 +2896,16 @@ if [[ "$loaderMode" == "0" ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clear
|
||||||
|
|
||||||
|
[[ ! -d "/tmp/" ]] && mkdir /tmp
|
||||||
|
|
||||||
|
# Disable SELinux
|
||||||
|
[[ -f /etc/selinux/config ]] && {
|
||||||
|
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"; }
|
||||||
|
}
|
||||||
|
|
||||||
[[ -z "$tmpDIST" ]] && {
|
[[ -z "$tmpDIST" ]] && {
|
||||||
[ "$Relese" == 'Debian' ] && tmpDIST='12'
|
[ "$Relese" == 'Debian' ] && tmpDIST='12'
|
||||||
[ "$Relese" == 'Kali' ] && tmpDIST='rolling'
|
[ "$Relese" == 'Kali' ] && tmpDIST='rolling'
|
||||||
|
|
Loading…
Add table
Reference in a new issue