99_runstart.sh 524 B

1234567891011121314151617
  1. #!/bin/sh
  2. export-cmd START kcmdline -g start
  3. # We haven't actually hit a login yet, so make sure these are set here...
  4. export USER=root
  5. export HOME=/home/root
  6. export-cmd GETTY_ARGS qemu-fwcfg opt/org.toaruos.gettyargs
  7. echo -n "Launching startup application..." > /dev/pex/splash
  8. echo -n "!quit" > /dev/pex/splash
  9. if equals? "$START" "--vga" then exec /bin/terminal-vga -l
  10. if equals? "$START" "--headless" then exec /bin/getty ${GETTY_ARGS}
  11. if empty? "$START" then exec /bin/compositor else exec /bin/compositor $START