liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 58bec8a40f49104db1b3143630c5163ddea87263
parent a3fca5bf05423e227ec3e327196210bde92506aa
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 26 May 2024 17:32:29 +0100

semi-automate tftpbooting with minicom

Diffstat:
Aboot.expect | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/boot.expect b/boot.expect @@ -0,0 +1,20 @@ +# This is for use with minicom, but needs you to configure it to +# use expect as its "Script program" instead of runscript. Try +# Ctrl+A O -> Filenames and paths -> D + +log_user 0 +log_file -a -open stderr +set f [open "result/boot.scr"] +send "version\r" +set timeout 60 +while {[gets $f line] >= 0} { + puts stderr "next line $line\r" + puts stderr "waiting for prompt\r" + expect { + "ath>" {} + "BusyBox" { puts stderr "DONE"; exit 0 } + } + send "$line\r\n" +} +puts stderr "done\r\n" +close $f +\ No newline at end of file