1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Base: Replace TTYServer with text mode Shell

Now that we have SystemServer that can (re)spawn the Shell, we don't need a
separate server just for that.

The two shells (on tty0 and tty1) are configured to only be started when booting
in text mode. This means you can now simply say boot_mode=text on the kernel
command line, and SystemServer will set up the system and spawn a comfy root
shell for you :^)
This commit is contained in:
Sergey Bugaev 2020-05-27 00:42:46 +03:00 committed by Andreas Kling
parent 856e4853f4
commit ae21b8ee56
5 changed files with 25 additions and 86 deletions

View file

@ -50,12 +50,13 @@ Priority=low
KeepAlive=1
User=anon
# Spawn the TTYServer on /dev/tty1 once on startup with a high priority,
# additionally passing it "tty1" as an argument.
[TTYServer]
Arguments=tty1
StdIO=/dev/tty1
Priority=high
# Launch the Shell on /dev/tty0 on startup when booting in text mode.
[Shell@tty0]
Executable=/bin/Shell
StdIO=/dev/tty0
Environment=TERM=xterm
KeepAlive=1
BootModes=text
```
## See also