-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 @@ +#!/bin/sh +mkdir dev +for i in 0 1 2 3 4 5 6 7 8 9 +do + mknod dev/ptyp$i c 2 $i + mknod dev/ttyp$i c 2 $i + chmod a+rw dev/ptyp$i dev/ttyp$i +done |