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}')
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user