Skip to content

Commit

Permalink
Update InstallNET.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeClub authored Sep 6, 2021
1 parent afa3444 commit 30b0b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InstallNET.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 30b0b14

Please sign in to comment.