Edit: Fixed the problem by moving the code from rcS2 to rcS. Telnet works now. I'll leave my original post below.
Spoiler:
Kobo Touch
1.9.10
Thank you, great work. Been using Linux for 5+ years, but I'm not that great. I've tried your tutorial for getting FTP and telnet working. FTP works great but not telnet.
Edited file contents:
Spoiler:
/etc/init.d/rcS2
Code:
#!/bin/sh
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
/etc/inetd.conf
Code:
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
# ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
# telnet stream tcp nowait root /usr/sbin/telnetd telnetd -l /bin/login
21 stream tcp nowait root /bin/busybox ftpd -w -S /
23 stream tcp nowait root /bin/busybox telnetd -i
/etc/inittab
Code:
# This is run first except when booting in single-user mode.
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty -L ttymxc0 115200 vt100
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::sysinit:/etc/init.d/rcS2
::respawn:/usr/sbin/inetd -f /etc/inetd.conf
Using the run.sh I first copied the files I was gonna edit just to be safe. There's some comments in inetd.conf, but I just used your lines for those.
So ftp works great but no telnet ...
Output of ftp and telnet where just ftp works:
So it seems to be connecting then closing right away. I'm gonna try some things to get it working but I'm not great with telnet so if anyone has any help that would be great.
Note busybox seems to be changed in the latest update kobo3-upgrade-1.9.10.zip KoboRoot.tgz.
Note /dev/pty doesn't exist. only block char input are in /dev. Is rcS2 not getting executed? Gonna try putting the code from rcS2 in rcS.
Thank you very much, great work. <3