mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
openwrt-ctrl: Deal better with funky prompt.
This commit is contained in:
@@ -189,7 +189,11 @@ def main():
|
|||||||
CLOSEDBYREMOTE = "closed by remote host."
|
CLOSEDBYREMOTE = "closed by remote host."
|
||||||
CLOSEDCX = "Connection to .* closed."
|
CLOSEDCX = "Connection to .* closed."
|
||||||
|
|
||||||
egg.expect(CCPROMPT)
|
try:
|
||||||
|
egg.expect(CCPROMPT)
|
||||||
|
except Exception as e:
|
||||||
|
egg.sendline(NL)
|
||||||
|
|
||||||
TO=10
|
TO=10
|
||||||
wait_forever = False
|
wait_forever = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user