Swap size check changes.

This commit is contained in:
tb14
2022-10-12 21:28:22 -05:00
parent 81fa8b2a5a
commit 9284ebbff5
2 changed files with 9 additions and 3 deletions
+8 -3
View File
@@ -3164,6 +3164,11 @@ SWAPFILE=/etc/dphys-swapfile
CURRENTSWAPSIZE=$(cat $SWAPFILE | grep CONF_SWAPSIZE= | awk -F "=" '{print $2}')
FREEMEM=$(free -m | grep Mem: | awk '{ print $2 }')
if [[ $FREEMEM -lt 3000 ]]; then
if [[ $CURRENTSWAPSIZE -lt 2000 ]]; then
echo "Some users have found that increasing the swap size may help prevent crashing during compiling of FLDIGI.
@@ -3217,7 +3222,7 @@ ${r} ${c}
fi
fi
fi
fi
}
@@ -3327,8 +3332,8 @@ cat /tmp/results | yad --text-info --center \
GARIM) echo "Updating GARIM"
garim_install
;;
WSJTX) echo "Installing WSJTX"
wsjtx_install
WSJTX) echo "WSJTX not currently supported"
#wsjtx_install
;;
PULSE) echo "Installing pulseaudio suite"
pulse_audio_suite_install