From 30b0b14e7566fae066ef61150d0daa9872a11792 Mon Sep 17 00:00:00 2001 From: MoeClub <32381827+MoeClub@users.noreply.github.com> Date: Mon, 6 Sep 2021 14:45:55 +0800 Subject: [PATCH] Update InstallNET.sh --- InstallNET.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InstallNET.sh b/InstallNET.sh index 50127721..38a37144 100644 --- a/InstallNET.sh +++ b/InstallNET.sh @@ -257,7 +257,7 @@ function getGrub(){ echo "${folder}:${fileName}:${ver}" } -function lowmem(){ +function lowMem(){ mem=`grep "^MemTotal:" /proc/meminfo 2>/dev/null |grep -o "[0-9]*"` [ -n "$mem" ] || return 0 [ "$mem" -le "524288" ] && return 1 || return 0 @@ -538,7 +538,7 @@ if [[ "$loaderMode" == "0" ]]; then [[ "$setInterfaceName" == "1" ]] && Add_OPTION="net.ifnames=0 biosdevname=0" || Add_OPTION="" [[ "$setIPv6" == "1" ]] && Add_OPTION="$Add_OPTION ipv6.disable=1" - lowmem || Add_OPTION="$Add_OPTION lowmem/low=true locale=en_US" + lowMem || Add_OPTION="$Add_OPTION lowmem=1" if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]]; then BOOT_OPTION="auto=true $Add_OPTION hostname=$linux_relese domain= -- quiet"