do not edit — generated by btf.
git.druid.rocksindexdruid520kaboommk/r.sh

mk/r.sh


#!/bin/sh
# runs $out/kaboom.elf interactively (vga text-mode via curses --
# ctrl+alt+2 switches to the qemu monitor, ctrl+alt+1 back to the vga
# view), with the real disk image attached. needs a real tty; run
# this from an actual terminal, not through anything that pipes
# stdin/stdout. see mk/rn.sh for the headless (-nographic) variant --
# same disk, same kernel, just a different console.
. ./mk.conf
set -e
 
if [ ! -f "$out/kaboom.elf" ]; then
	echo "r.sh: $out/kaboom.elf not built yet -- run mk/b.sh first." >&2
	exit 1
fi
if [ ! -f "$out/disk.img" ]; then
	echo "r.sh: $out/disk.img not built yet -- run mk/bd.sh first." >&2
	exit 1
fi
 
exec "$qemu" -kernel "$out/kaboom.elf" \
	-drive file="$out/disk.img",format=raw,if=ide \
	-display curses $qemuflgs
powered by btf.