Temporary Zenity check in mem_check() function

This commit is contained in:
the-sane 2020-08-02 21:06:46 -04:00 committed by GitHub
parent d7dd89a630
commit 7cbe197991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,12 @@ final_check() {
# Check vm.max_map_count for the correct setting and let the user fix it if needed # Check vm.max_map_count for the correct setting and let the user fix it if needed
mem_check() { mem_check() {
# Zenity Check
if [ "$zenity" -eq 0 ]; then
echo "Zenity is not installed. Text menus have not yet been implemented"
exit 0
fi
# If vm.max_map_count is already set, no need to do anything # If vm.max_map_count is already set, no need to do anything
if [ "$(cat /proc/sys/vm/max_map_count)" -ge 16777216 ]; then 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!" main_dialog --info --text="vm.max_map_count is already set to the optimal value. You're all set!"