barsju
28-03-2005, 09:10
Hi, I have found inetd in the full busybox compilation but I can't seem to get it to work. I have tried with this config file:
telnet stream tcp nowait root /usr/sbin/telnetd telnetd
hello stream tcp nowait root /tmp/harddisk/hello.sh hello.sh
The hello.sh is a hello world script I want to get working but I included the telnet service for testing. When I start the inetd ("..../busybox inetd /tmp/inetd.conf") i get
Mar 28 08:19:18 inetd[16791]: telnet/tcp: unknown service
Mar 28 08:19:18 inetd[16791]: hello/tcp: unknown service
I have of course killed the original telnetd and included "hello 3333/tcp" in /etc/services, but I guess that is not enough as I could not include it in /usr/etc/services which is read-only.. But that still doesn't explain why the telnetd doesn't work as it is included by default!
So why doesn't it work and how do I include lines to /usr/etc/services (if that is necessary of course). Has anyone made inetd work? All help is greatly appreciated!
My fw is Olegs 1.9.2.7 cr4 and busybox is version BusyBox v1.00-pre5.
S.
telnet stream tcp nowait root /usr/sbin/telnetd telnetd
hello stream tcp nowait root /tmp/harddisk/hello.sh hello.sh
The hello.sh is a hello world script I want to get working but I included the telnet service for testing. When I start the inetd ("..../busybox inetd /tmp/inetd.conf") i get
Mar 28 08:19:18 inetd[16791]: telnet/tcp: unknown service
Mar 28 08:19:18 inetd[16791]: hello/tcp: unknown service
I have of course killed the original telnetd and included "hello 3333/tcp" in /etc/services, but I guess that is not enough as I could not include it in /usr/etc/services which is read-only.. But that still doesn't explain why the telnetd doesn't work as it is included by default!
So why doesn't it work and how do I include lines to /usr/etc/services (if that is necessary of course). Has anyone made inetd work? All help is greatly appreciated!
My fw is Olegs 1.9.2.7 cr4 and busybox is version BusyBox v1.00-pre5.
S.