summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2015-09-28 03:34:17 -0700
committeriximeow <me@iximeow.net>2015-09-28 03:36:28 -0700
commit7a3463683e9ceecb058b44f228f2d6a389fb9192 (patch)
tree2dcfbd027cab2defaac5346aeb1d756514d8a23f
parent74057dac1d460574f0b7edb89e9e4125a69c885a (diff)
add kill command, tweak run to run in curses mode
-rwxr-xr-xkill8
-rwxr-xr-xrun2
2 files changed, 9 insertions, 1 deletions
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