mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
CICD: openwrt ctl expect login improvements.
This helped with logging into recent TIP openwrt images. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -134,6 +134,9 @@ def main():
|
||||
egg.sendline(NL)
|
||||
try:
|
||||
i = egg.expect([prompt, "Please press Enter to activate", "login:"], timeout=3)
|
||||
if (i == 1):
|
||||
egg.setdline(NL)
|
||||
i = egg.expect([prompt, "Please press Enter to activate", "login:"], timeout=3)
|
||||
if (i == 2):
|
||||
egg.sendline(user)
|
||||
egg.expect("Password:")
|
||||
|
||||
Reference in New Issue
Block a user