From 20b348651ea924b5a5ad06c409b11da3f871e4df Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Mon, 28 Nov 2022 17:22:53 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 16a0675..62d134c 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -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`