Zenity dialog when vm.max_map_count is already set

This commit is contained in:
the-sane 2020-08-02 16:05:38 -04:00 committed by GitHub
parent fe324b1943
commit d7dd89a630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ final_check() {
mem_check() {
# If vm.max_map_count is already set, no need to do anything
if [ "$(cat /proc/sys/vm/max_map_count)" -ge 16777216 ]; then
main_dialog --info --text="vm.max_map_count is already set to the optimal value. You're all set!"
exit 0
fi