From 9af012eaaf0e4258b63b90abde61daa9d68cbdba Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 23 Jan 2021 22:34:15 -0500 Subject: [PATCH] Improve comments --- lug-helper.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 8f7f062..e3c62b7 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -548,6 +548,7 @@ mapcount_check() { elif grep -E -x -q "vm.max_map_count" /etc/sysctl.conf /etc/sysctl.d/* 2>/dev/null; then # Was it supposed to have been set by sysctl? preflight_fail+=("vm.max_map_count is configured to at least 16777216 but the setting has not been loaded by your system.") + # Add the function that will be called to change the configuration preflight_actions+=("mapcount_once") # Add info for manually changing the setting @@ -555,6 +556,7 @@ mapcount_check() { else # The setting should be changed preflight_fail+=("vm.max_map_count should be set to at least 16777216\nto give the game access to more than 8GB of memory\nand avoid crashes in areas with lots of geometry.") + # Add the function that will be called to change the configuration preflight_actions+=("mapcount_set") # Add info for manually changing the setting @@ -612,6 +614,7 @@ filelimit_check() { else # The file limit should be changed preflight_fail+=("Your hard open file descriptors limit should be set\nto at least 524288.") + # Add the function that will be called to change the configuration preflight_actions+=("filelimit_set") # Add info for manually changing the settings @@ -1010,6 +1013,7 @@ runner_manage() { # Check that the system is optimized for Star Citizen preflight_check() { + # Initialize variables unset preflight_pass unset preflight_fail unset preflight_actions