I'm reopening this because as far as I can tell, the fix that was put in is bogus -- the code now reads:
if [ -z "$MEM" ]; then [ $(grep "^MemTotal" /proc/meminfo | awk '{print $2}') -gt 1000000 ] && MEM=512 || MEM=256 else MEM=256 fi
and that "else" clause is wrong. The whole point is that we don't want to set MEM if it is already set.
I'm reopening this because as far as I can tell, the fix that was put in is bogus -- the code now reads:
if [ -z "$MEM" ]; then
[ $(grep "^MemTotal" /proc/meminfo | awk '{print $2}') -gt 1000000 ] && MEM=512 || MEM=256
else
MEM=256
fi
and that "else" clause is wrong. The whole point is that we don't want to set MEM if it is already set.