diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-23 19:38:50 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-23 19:38:50 +0300 |
| commit | 6bf809731abfd1893e73f6c6b35d0a22dacd6fb2 (patch) | |
| tree | 2badb20131925d49384ae4f81924f02bcff58617 /run.sh | |
| parent | Added the presentation (diff) | |
| download | linux-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-x | run.sh | 17 |
1 files changed, 15 insertions, 2 deletions
| @@ -6,5 +6,18 @@ then | |||
| 6 | exit 1 | 6 | exit 1 |
| 7 | fi | 7 | fi |
| 8 | 8 | ||
| 9 | gnome-terminal -- bash ./scripts/scan.sh "$1" | 9 | if [ ! $(cat /proc/sys/kernel/yama/ptrace_scope) -eq 0 ] |
| 10 | gnome-terminal -- bash ./scripts/read.sh "$1" | 10 | then |
| 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 | ||
| 16 | fi | ||
| 17 | |||
| 18 | TERM_EMU=gnome-terminal | ||
| 19 | |||
| 20 | # The syntax for the startup command may differ per terminal emulator. | ||
| 21 | make && \ | ||
| 22 | ${TERM_EMU} -- bash ./scripts/scan.sh "$1" && \ | ||
| 23 | ${TERM_EMU} -- bash ./scripts/read.sh "$1" | ||
