diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 06:30:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 06:30:19 +0100 |
commit | 2f74c2f43009723c996f508f423eab3013b47792 (patch) | |
tree | c63ab495172eec96867ff28ffcffb5fbcbca0c98 /Kernel/sync.sh | |
parent | ecb4ab0943530794fb00a0a6e2a82e3e94e2f9a3 (diff) | |
download | serenity-2f74c2f43009723c996f508f423eab3013b47792.zip |
Add basic PTY support.
For now, there are four hard-coded PTYs: /dev/pt{m,s}[0123]
Use this in the Terminal to open a pty pair and spawn a shell.
Diffstat (limited to 'Kernel/sync.sh')
-rwxr-xr-x | Kernel/sync.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Kernel/sync.sh b/Kernel/sync.sh index d72dca30c6..0aa9cf6e98 100755 --- a/Kernel/sync.sh +++ b/Kernel/sync.sh @@ -9,6 +9,14 @@ mknod mnt/dev/tty1 c 4 1 mknod mnt/dev/tty2 c 4 2 mknod mnt/dev/tty3 c 4 3 mknod mnt/dev/psaux c 10 1 +mknod mnt/dev/ptm0 c 10 0 +mknod mnt/dev/ptm1 c 10 1 +mknod mnt/dev/ptm2 c 10 2 +mknod mnt/dev/ptm3 c 10 3 +mknod mnt/dev/pts0 c 11 0 +mknod mnt/dev/pts1 c 11 1 +mknod mnt/dev/pts2 c 11 2 +mknod mnt/dev/pts3 c 11 3 mknod mnt/dev/gui_events c 66 1 cp -R ../Base/* mnt/ cp -v ../Userland/sh mnt/bin/sh |