#!/bin/sh

if not qemu-fwcfg -q opt/org.toaruos.forceuser then exit 0

export-cmd TERM qemu-fwcfg opt/org.toaruos.term
export-cmd QEMU_USER qemu-fwcfg opt/org.toaruos.forceuser

echo -n "!quit" > /dev/pex/splash

/bin/petty -a "$QEMU_USER" "/dev/net/10.0.2.1:8090"
reboot

