aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-23 19:38:50 +0300
committerOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-23 19:38:50 +0300
commit6bf809731abfd1893e73f6c6b35d0a22dacd6fb2 (patch)
tree2badb20131925d49384ae4f81924f02bcff58617 /run.sh
parentAdded the presentation (diff)
downloadlinux-game-trainer-6bf809731abfd1893e73f6c6b35d0a22dacd6fb2.tar.gz
linux-game-trainer-6bf809731abfd1893e73f6c6b35d0a22dacd6fb2.zip
Small changes to the Makefile and the scripts
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 6de5897..c0d4886 100755
--- a/run.sh
+++ b/run.sh
@@ -6,5 +6,18 @@ then
6 exit 1 6 exit 1
7fi 7fi
8 8
9gnome-terminal -- bash ./scripts/scan.sh "$1" 9if [ ! $(cat /proc/sys/kernel/yama/ptrace_scope) -eq 0 ]
10gnome-terminal -- bash ./scripts/read.sh "$1" 10then
11 echo "ptrace_scope is not set to 0 and ptrace attach will subsequently fail
12 To solve this issue you can run the following command:
13
14 echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope"
15 exit 1
16fi
17
18TERM_EMU=gnome-terminal
19
20# The syntax for the startup command may differ per terminal emulator.
21make && \
22${TERM_EMU} -- bash ./scripts/scan.sh "$1" && \
23${TERM_EMU} -- bash ./scripts/read.sh "$1"