diff options
-rwxr-xr-x | kill | 8 | ||||
-rwxr-xr-x | run | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -0,0 +1,8 @@ +#! /bin/sh +if [ -f emu.pid ]; then + kill $(cat emu.pid) + rm emu.pid + echo "RIP" +else + echo "nothing to RIP" +fi @@ -1,3 +1,3 @@ #! /bin/bash -qemu-system-x86_64 bootable.img +qemu-system-x86_64 -curses -s -pidfile emu.pid bootable.img |