openwrt-ctrl: Deal better with funky prompt.

This commit is contained in:
Ben Greear
2020-05-08 13:25:10 -07:00
parent 1889a2f978
commit 10b7dd2471

View File

@@ -189,7 +189,11 @@ def main():
CLOSEDBYREMOTE = "closed by remote host."
CLOSEDCX = "Connection to .* closed."
egg.expect(CCPROMPT)
try:
egg.expect(CCPROMPT)
except Exception as e:
egg.sendline(NL)
TO=10
wait_forever = False