cleanup: remove testing directory
This wasn't even used for the single-char testing -- I branched instead after realizing that was more convenient.
This commit is contained in:
parent
ed3c514546
commit
3332fbd560
@ -1,44 +0,0 @@
|
|||||||
#!/usr/bin/expect -d
|
|
||||||
|
|
||||||
set timeout 100
|
|
||||||
exp_internal 1
|
|
||||||
|
|
||||||
set send_slow {1 0.005}
|
|
||||||
|
|
||||||
spawn picocom -b 115200 /dev/ttyUSB1 --logfile typescript
|
|
||||||
set term_id $spawn_id
|
|
||||||
spawn ./toggle_jg928a_port.sh
|
|
||||||
set spawn_id $term_id
|
|
||||||
#spawn ssh root@jg928a
|
|
||||||
expect "DRAM"
|
|
||||||
send " "
|
|
||||||
|
|
||||||
expect {[30s timeout]}
|
|
||||||
expect "login:"
|
|
||||||
send "admin\n"
|
|
||||||
expect "password:"
|
|
||||||
send "new2day\n"
|
|
||||||
|
|
||||||
expect {
|
|
||||||
"Boot (PRI)-> " {
|
|
||||||
send -s {setenv ramboot_openwrt "setenv ipaddr 192.168.0.2; setenv serverip 192.168.0.1; tftpboot 0x2000000 openwrt-mpc85xx-p1020-extreme-networks_ws-ap3825i-initramfs-kernel.bin; interrupts off; bootm 0x2000000;"; setenv boot_openwrt "bootm 0xEC000000;"; setenv bootcmd "run boot_openwrt"; saveenv;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
expect {
|
|
||||||
"Protected 1 sectors\r\nBoot (PRI)-> " {
|
|
||||||
send -s "run ramboot_openwrt;\n"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
expect {
|
|
||||||
"Please press Enter to activate this console." {
|
|
||||||
send -s "\n"
|
|
||||||
sleep 50
|
|
||||||
send -s {
|
|
||||||
sysupgrade https://downloads.openwrt.org/releases/23.05.2/targets/mpc85xx/p1020/openwrt-23.05.2-mpc85xx-p1020-extreme-networks_ws-ap3825i-squashfs-sysupgrade.bin;
|
|
||||||
done;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user