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
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/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 export-cmd QEMU_USER qemu-fwcfg opt/org.toaruos.forceuser
/bin/getty -a "$QEMU_USER"
if empty? "$QEMU_USER" then true else /bin/getty -a "$QEMU_USER" reboot
if empty? "$QEMU_USER" then true else reboot