; ============================================================================= ; File : utils/wait_init.ttl ; Version : V1.0.0 ; Date : 2026-08-21 ; Author : ETWen ; ============================================================================= ; Wait until "show platform temperature" is not "Thermal Not detected". ; Enter : prompt of the previous command is NOT consumed. ; Exit : "show platform temperature" is sent, prompt NOT consumed. ; ; Version History: ; V1.0.0 2026-08-21 Initial Version ; ============================================================================= wt_interval = 10 timeout = 30 wait prompt_sonic_root :WAIT_THERMAL sendln "show platform temperature" wait "Thermal Not detected" prompt_sonic_root if result = 2 then goto THERMAL_OK endif wait prompt_sonic_root pause wt_interval goto WAIT_THERMAL :THERMAL_OK timeout = 0 sendln "show platform temperature"