change the way 98_qemu_login works

This commit is contained in:
K. Lange 2018-08-13 18:07:19 +09:00
parent e9853dbd4f
commit c5c0e5b89c

View File

@ -1,7 +1,8 @@
#!/bin/sh
if qemu-fwcfg -q opt/org.toaruos.forceuser then true else exit 0
export-cmd QEMU_USER qemu-fwcfg opt/org.toaruos.forceuser
if empty? "$QEMU_USER" then true else /bin/getty -a "$QEMU_USER"
if empty? "$QEMU_USER" then true else reboot
/bin/getty -a "$QEMU_USER"
reboot