mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-29 06:44:19 +00:00
Look for swap in preflight check
This commit is contained in:
parent
f67c76be2e
commit
57df0a8dd9
@ -775,6 +775,15 @@ avx_check() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check if swap is set up
|
||||||
|
swap_check() {
|
||||||
|
if cat /proc/swaps | grep -vq "Filename"; then
|
||||||
|
preflight_pass+=("You have swap space configured.")
|
||||||
|
else
|
||||||
|
preflight_fail+=("You don't appear to have swap space configured.\nWe recommend swap for systems with 32 GB RAM or less.")
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Check that the system is optimized for Star Citizen
|
# Check that the system is optimized for Star Citizen
|
||||||
preflight_check() {
|
preflight_check() {
|
||||||
# Initialize variables
|
# Initialize variables
|
||||||
@ -789,6 +798,7 @@ preflight_check() {
|
|||||||
# Call the optimization functions to perform the checks
|
# Call the optimization functions to perform the checks
|
||||||
wine_check
|
wine_check
|
||||||
memory_check
|
memory_check
|
||||||
|
swap_check
|
||||||
avx_check
|
avx_check
|
||||||
mapcount_check
|
mapcount_check
|
||||||
filelimit_check
|
filelimit_check
|
||||||
|
Loading…
Reference in New Issue
Block a user