mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: hotfix for #57
This commit is contained in:
parent
b5a068c327
commit
310429bf42
1 changed files with 4 additions and 6 deletions
10
dzgui.sh
10
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.2.2
|
||||
version=3.2.3
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -1719,13 +1719,11 @@ check_map_count(){
|
|||
count=1048576
|
||||
echo "[DZGUI] Checking system map count"
|
||||
if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
|
||||
echo "100"
|
||||
map_warning=$($steamsafe_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)
|
||||
$steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine.\nIncrease map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
pass=$($steamsafe_zenity --password)
|
||||
sudo -S <<< "$pass" sh -c "echo 'vm.max_map_count=1048576' > /etc/sysctl.d/dayz.conf"
|
||||
echo ""
|
||||
|
||||
sudo sysctl -p /etc/sysctl.d/dayz.conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -1784,7 +1782,7 @@ update_steam_cmd(){
|
|||
}
|
||||
steam_deps(){
|
||||
local flatpak steam
|
||||
flatpak=$(flatpak list | grep valvesoftware.Steam)
|
||||
[[ $(command -v flatpak) ]] && flatpak=$(flatpak list | grep valvesoftware.Steam)
|
||||
steam=$(command -v steam)
|
||||
if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then
|
||||
warn "Requires Steam or Flatpak Steam"
|
||||
|
|
Loading…
Reference in a new issue