RedPill-TTG / redpill-load

RedPill Loader Generator
GNU General Public License v3.0
745 stars 553 forks source link

Need inetd (telnetd) to start early for baremetal with no serial port for troubleshooting #31

Open labrouss opened 3 years ago

labrouss commented 3 years ago

It would be nice if you could add it to your ramdisk patches :

e.g. within StartServices() after etc/rc

         # create second console channel
            if [ -e /dev/hvc0 ]; then
                    /sbin/getty 115200 hvc0 &
            fi
    fi

add something like :

echo "Starting early telnetd for troubleshooting " /sbin/inetd if [ ps -ef |grep -i inetd |grep sbin | wc -l -eq 1 ] ; then echo "Inetd has started succesfully" fi