Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-09-14 14:34:02 +09:00 committed by GitHub
parent e9b0b54200
commit a8fd9176ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -944,6 +944,7 @@ function checkGrub() {
break
fi
done
GRUBDIR=`echo $GRUBDIR | awk '{print $1}'`
if [[ -z "$GRUBFILE" ]] || [[ `grep -c "insmod*" $GRUBDIR$GRUBFILE` == "0" ]]; then
for Count in "$1" "$2" "$3"; do
# Don't support grub1 of CentOS/Redhat Enterprise Linux/Oracle Linux 6.x