summaryrefslogtreecommitdiff
diff options
context:
space:
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