Skip to content

Commit 6921851

Browse files
committed
feat(pvr): add fix_pvr.sh module
1 parent 08057c8 commit 6921851

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lgsm/modules/command_monitor.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ fn_monitor_check_session() {
177177
fn_script_log_error "Checking session: There are PIDS with identical tmux sessions running"
178178
fn_script_log_error "Checking session: Killing all tmux sessions with the socketname name ${socketname} and session name ${sessionname}"
179179
pkill -f "tmux -L ${socketname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
180+
command_restart.sh
180181
core_exit.sh
181182
# Check for tmux pids with the same tmux session and socket names. This will reduce issues with migration to release v23.5.0. #4296
182183
elif [ "$(pgrep -fc -u "${USER}" "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
@@ -186,6 +187,7 @@ fn_monitor_check_session() {
186187
fn_script_log_error "Checking session: PIDS with the same tmux session and socket names are running"
187188
fn_script_log_error "Checking session: Killing session with the socketname name ${sessionname} and session name ${sessionname}"
188189
pkill -f "tmux -L ${sessionname} new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
190+
command_restart.sh
189191
core_exit.sh
190192
# Check for tmux pids that are using the old type of tmux session. This will reduce issues with migration to release v23.5.0. #4296
191193
elif [ "$(pgrep -fc -u "${USER}" "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}")" != "0" ]; then
@@ -195,6 +197,7 @@ fn_monitor_check_session() {
195197
fn_script_log_error "Checking session: PIDS with old type tmux session are running"
196198
fn_script_log_error "Checking session: Killing session with the session name ${sessionname}"
197199
pkill -f "tmux new-session -d -x ${sessionwidth} -y ${sessionheight} -s ${sessionname}"
200+
command_restart.sh
198201
core_exit.sh
199202
elif [ "${status}" != "0" ]; then
200203
fn_print_ok "Checking session: "

lgsm/modules/core_modules.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ fix_onset.sh() {
421421
fn_fetch_module
422422
}
423423

424+
fix_pvr.sh() {
425+
modulefile="${FUNCNAME[0]}"
426+
fn_fetch_module
427+
}
428+
424429
fix_ro.sh() {
425430
modulefile="${FUNCNAME[0]}"
426431
fn_fetch_module

lgsm/modules/fix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn_apply_fix() {
5252
fi
5353
}
5454

55-
apply_pre_start_fix=(arma3 armar ark av bt bo csgo cmw dst hw ins nmrih onset rust rw sdtd sfc sof2 squad st tf2 terraria ts3 mcb mta unt vh wurm zmr)
55+
apply_pre_start_fix=(arma3 armar ark av bt bo csgo cmw dst hw ins nmrih onset pvr rust rw sdtd sfc sof2 squad st tf2 terraria ts3 mcb mta unt vh wurm zmr)
5656
apply_post_install_fix=(av kf kf2 lo ro samp ut2k4 ut ut3)
5757

5858
# validate registered fixes for safe development

0 commit comments

Comments
 (0)