Re: ttyp's...

Neil Moore (amethyst@valjean.sfhs.floyd.k12.ky.us)
Wed, 18 Dec 1996 10:34:13 -0500


>
>
>
> In the process of fixing /dev/console, I successfully BROKE /dev/ttyp? ...
>
> I rm'ed ttyp* then did "mknod <file> c 4 7" for each one. Now upon trying
> to telnet into the system, I get the contents of issue.net displayed, then
> no prompt, it just sits there until I kill the telnet...
>
> What'd I break?

ttypn should be c 3 n, according to linux/Documentation/devices.txt
(and my Slackware system, although that's not really helping my case
much :). Try:

cd /dev/
for x in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do
rm ttyp$x
mknod ttyp$x c 3 `printf %d 0x$x`
chown root.tty ttyp$x
chmod g+rw ttyp$x
done

Or simply;

for x in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do
MAKEDEV ttyp$x
done

-- 
-Neil Moore          http://www.sfhs.floyd.k12.ky.us/~amethyst
(finger amethyst@valjean.sfhs.floyd.k12.ky.us for my Geek Code)