From 7a3463683e9ceecb058b44f228f2d6a389fb9192 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 28 Sep 2015 03:34:17 -0700 Subject: add kill command, tweak run to run in curses mode --- kill | 8 ++++++++ run | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 kill diff --git a/kill b/kill new file mode 100755 index 0000000..d90c1b4 --- /dev/null +++ b/kill @@ -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 diff --git a/run b/run index 779d0a3..8fcb837 100755 --- a/run +++ b/run @@ -1,3 +1,3 @@ #! /bin/bash -qemu-system-x86_64 bootable.img +qemu-system-x86_64 -curses -s -pidfile emu.pid bootable.img -- cgit v1.1