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

mk/rn.sh


#!/bin/sh
# runs $out/kaboom.elf with the real disk image attached. -nographic
# merges the vga console and qemu's own monitor onto the current
# terminal (ctrl-a c toggles between them, ctrl-a x quits) -- no curses
# ui, no separate window, works over a plain ssh session same as any
# other headless qemu invocation. see mk/r.sh for the curses variant
# (needs a real tty) -- same disk, same kernel, just a different
# console.
. ./mk.conf
set -e
 
if [ ! -f "$out/kaboom.elf" ]; then
	echo "rn.sh: $out/kaboom.elf not built yet -- run mk/b.sh first." >&2
	exit 1
fi
if [ ! -f "$out/disk.img" ]; then
	echo "rn.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 \
	-nographic $qemuflgs
powered by btf.