Help with auto email sendind script in hAP Lite

I’ve been using the following script in many routers for sending email when its reboot:

:while ( [/system ntp client get status]!=“synchronized” ) do={ :delay 10s }
:delay 10s
/log info “time updated; uptime: $[/system resource get uptime]”
:local es “$[/system identity get name] rebooted on $[/system clock get date] $[/system clock get time] uptime $[/system resource get uptime]”
:delay 90s

but it doesn’t work on hAP Lite router, like the 941-2nD

First, the ntp package is not included and not available for the Lite version, then, I can take away the :while…

But other commands maybe are not available.

CAn you help me for doing the same, or what will I change in the script for working?

Thank you

I just checked the command “/system ntp client get status” on an RB2011 (ROS 6.34.2) and there’s no such value as “status”. Likewise on the hAP Lite (ROS 6.34.4). I guess it must have been removed in one of the versions.