Hello.
I have a problem with a case when a board uses an autologin. read_until_prompt method doesn't work if the device keeps sending logs.
For example, if we set login_promt like this ~ # and the input bytearray will become like this ~ # [ 10.364872] startup_sh[0]: IP is: 192.168.80.254 the method will just ignore the string.
My suggestion is to replace endwith with find here
Please, guide me if I'm wrong.