Update InstallNET.sh

This commit is contained in:
Molly Lau 2022-11-28 17:22:53 +09:00 committed by GitHub
parent d729f24701
commit 20b348651e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -428,8 +428,10 @@ function lowMem(){
}
function checkSys(){
yum install redhat-lsb -y 2>/dev/null
apt install lsb-release -y 2>/dev/null
apt update -y
apt install dnsutils efibootmgr file lsb-release wget xz-utils -y
yum update --allowerasing -y
yum install dnsutils efibootmgr file redhat-lsb wget xz -y
OsLsb=`lsb_release -d | awk '{print$2}'`
CurrentOSVer=`cat /etc/os-release | grep -w "VERSION_ID=*" | awk -F '=' '{print $2}' | sed 's/\"//g' | cut -d'.' -f 1`