mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-13 21:50:35 +00:00
Temporary Zenity check in mem_check() function
This commit is contained in:
parent
d7dd89a630
commit
7cbe197991
@ -136,6 +136,12 @@ final_check() {
|
||||
|
||||
# Check vm.max_map_count for the correct setting and let the user fix it if needed
|
||||
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 [ "$(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!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user