mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Swap size check changes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user