mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
More permissive map count comparison
This commit is contained in:
parent
8dbb7b05f2
commit
fd51ca347e
1 changed files with 1 additions and 1 deletions
2
dzgui.sh
2
dzgui.sh
|
@ -896,7 +896,7 @@ setup(){
|
||||||
}
|
}
|
||||||
check_map_count(){
|
check_map_count(){
|
||||||
count=1048576
|
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)
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
pass=$(zenity --password)
|
pass=$(zenity --password)
|
||||||
|
|
Loading…
Reference in a new issue