Michel-FK 4b519d9911 change for new pid script
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
2021-05-15 23:48:45 +02:00

11 lines
259 B
Bash
Executable File

#!/bin/sh
cp /usr/games/mednafen-09x.cfg ${MEDNAFEN_HOME}/
# Launch the process in background, record the PID into a file, wait
# for the process to terminate and erase the recorded PID
mednafen -fs 1 -ngp.stretch full "$1"&
pid record $!
wait $!
pid erase