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}') 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 if [[ $CURRENTSWAPSIZE -lt 2000 ]]; then
echo "Some users have found that increasing the swap size may help prevent crashing during compiling of FLDIGI. 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
fi
fi fi
} }
@@ -3327,8 +3332,8 @@ cat /tmp/results | yad --text-info --center \
GARIM) echo "Updating GARIM" GARIM) echo "Updating GARIM"
garim_install garim_install
;; ;;
WSJTX) echo "Installing WSJTX" WSJTX) echo "WSJTX not currently supported"
wsjtx_install #wsjtx_install
;; ;;
PULSE) echo "Installing pulseaudio suite" PULSE) echo "Installing pulseaudio suite"
pulse_audio_suite_install pulse_audio_suite_install
+1
View File
@@ -6,6 +6,7 @@
- updated fldigi deps - updated fldigi deps
- modified more deps, fixed error reporting issue. - modified more deps, fixed error reporting issue.
- Changed Chirp Install to be from snap. - Changed Chirp Install to be from snap.
- Changed swap file check to only check if less than 3GB RAM.
# Version 0.6.9 # Version 0.6.9
- Corrected wsjt-x address from http to https - Corrected wsjt-x address from http to https