
Iniciado por
calimocho
En los firmwares no encriptados, /usr/local/etc/rcS es llamado desde /etc/init.d/rcS1
Parece que lo han eliminado, o yo no encuentro la llamada a rcS. Mira el código del /etc/init.d/rcS1
Código:
#!/bin/sh
/bin/mount -a
cp -a /tmp_orig/* /tmp
cp -a /usr/local/etc/hdd.old /tmp/hdd
# From now on, we can use mount.rcS
grep -q "(" /proc/cmdline
if [ $? = 0 ]; then
/etc/init.d/mount.rcS
if [ $? = 1 ]; then
mount /usr/local/etc
fi
else
mount /usr/local/etc
fi
grep -q SYSLOGDISK /sys/realtek_boards/system_parameters
if [ $? = 0 ]; then
/etc/init.d/syslog.rcS&
fi
#echo "Use Flash as root."&
#/bin/mkdir -p /var/lib/hotplug
#/bin/mkdir -p /var/log&
#ln -s /usr/local/firmware /var/lib/hotplug/&
# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start&
;;
esac
done
# We need to direct standard output to /dev/console or the output of script rcS will disappear.
/etc/init.d/rcS2>/dev/console&
/bin/hostname -F /etc/hostname&
/sbin/ifconfig lo 127.0.0.1 up&
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo&
#/bin/mkdir -p /tmp/usbmounts
#/bin/mkdir -p /var/lock/hotplug/convert_tmp
#/bin/mkdir -p /var/lock/hotplug/rename_tmp
#/bin/mkdir -p /var/lock/hotplug/mount_tmp
#mkdir -p /tmp/ramfs/volumes
#mkdir -p /tmp/ramfs/labels
#touch /var/lock/hotplug/volume_lock
#cp /etc/init.d/config /var/lock/hotplug/
#/bin/rm -rf /tmp/usbmounts/*&
#/bin/rm -rf /tmp/usbmounts/.*&
#/sbin/modprobe venus1394&
#/sbin/modprobe ehci-hcd
#/sbin/modprobe ohci-hcd
#/bin/touch /var/log/messages
# I donot know why syslog cannot work well with below parameters. Kernel problem or uClibc problem?
#/sbin/syslogd -p /tmp/.log -n -m 0&
#/sbin/klogd -n&
#/sbin/syslogd&
#/sbin/klogd&

Iniciado por
calimocho
y en ese mismo directorio debería estar S50inetd que es el que lanzaría el telnetd
Correcto, allí está el fichero que laza al telnetd
Código:
#! /bin/sh
# /etc/rcS.d/15inetd
#
# Start our network services daemon
mkdir -p /var/lock/subsys/network
#[ -f /var/lock/subsys/network ] || exit 0
echo "Starting INET services...."
inetd
touch /var/lock/subsys/inetd
exit 0

Iniciado por
calimocho
(salvo que la línea correspondiente de /etc/inetd.conf esté comentada con la # inicial, que es lo que han hecho últimamente en algún firmware nuevo de otros reproductores).
Saludos.
Y vuelves a estar en lo cierto, puesto que en el /etc/inetd.conf aparece comentada la línea del telnet
Código:
#
# /etc/inetd.conf A simple inetd.conf
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
#
#ftp stream tcp nowait root /usr/sbin/ftpd ftpd -u 100
#telnet stream tcp nowait root /usr/sbin/telnetd telnetd
#auth stream tcp nowait nobody /usr/sbin/nullidentd nullidentd
#www stream tcp nowait www-data /usr/sbin/httpd httpd -h /var/www
#
# End of inetd.conf
Yo también he hecho pruebas con el /usr/local/etc/rcS con el código de denis111 al final del archivo, y parece que no se ejecuta nada (lo he desconectado y luego conectado para hacerle un boot real)