From fd51ca347e9893ef402b3dcdc7f377f6781aff14 Mon Sep 17 00:00:00 2001 From: aclist Date: Sat, 6 Aug 2022 10:22:12 +0900 Subject: [PATCH] More permissive map count comparison --- dzgui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index 7790b53..b3a0def 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -896,7 +896,7 @@ setup(){ } check_map_count(){ count=1048576 - if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -ne $count ]]; then + if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then map_warning=$(zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine. Increase map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null) if [[ $? -eq 0 ]]; then pass=$(zenity --password)