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