-rwxr-xr-x | root/makeptydevs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/root/makeptydevs b/root/makeptydevs new file mode 100755 index 0000000..723bbc0 --- a/dev/null +++ b/root/makeptydevs | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | mkdir dev | ||
3 | for i in 0 1 2 3 4 5 6 7 8 9 | ||
4 | do | ||
5 | mknod dev/ptyp$i c 2 $i | ||
6 | mknod dev/ttyp$i c 2 $i | ||
7 | chmod a+rw dev/ptyp$i dev/ttyp$i | ||
8 | done | ||