Changeset 3708

Show
Ignore:
Timestamp:
03/10/08 15:56:00 (9 months ago)
Author:
n0-1
Message:

As bootup device node creation via 'mdev -s' seems to be
broken on some devices (e.g. Asus WL500gP and fon2100),
manually create some really crucial device nodes:
tts/0 -> else no shell on the serial console (see /etc/inittab)
ptmx -> else no shell after login via ssh

(see Unix98 PTY Support kernel documentation)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/files/etc/preinit

    r3417 r3708  
    1010        mknod -m 0666 /dev/tty c 5 0 
    1111        mknod -m 0622 /dev/console c 5 1 
     12        mknod -m 0666 /dev/ttyS0 c 4 64 
     13        mkdir -p /dev/tts 
     14        ln -s ../ttyS0 /dev/tts/0 
     15        mknod -m 0666 /dev/ptmx c 5 2 
    1216        # switch to the real console (if possible) 
    1317        exec 0<>/dev/console >&0 2>&0