Automatic update of ROS packages, Routerboard then Reboot

I have this script to auto-update the ROS packages, then auto-update Routerboard FW and finally do a reboot. Based on https://www.youtube.com/watch?v=3zYBvRxp_lg and the wiki.


/system scheduler

add interval=1d name=“Check for Update” on-event=“/system package update\r
\ncheck-for-updates once\r
\n:delay 1s;\r
\n:if ( [get status] = "New version is available") do={ install }”
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
start-date=jan/01/1970 start-time=02:40:00

add interval=1d name=“Update Routerboard” on-event=“:global Var1\r
\n:global Var2\r
\n:set Var1 "$[/system package get system version]"\r
\n:set Var2 "$[/system routerboard get current-firmware]"\r
\n:if ($Var1>$Var2) do={/system routerboard upgrade;\r
\n/system reboot;\r
\n}” policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
start-date=jan/01/1970 start-time=02:50:00

add interval=1d name=“Reboot Router Daily” on-event=“/system reboot” policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
start-date=jan/01/1970 start-time=03:00:00


Question:
Updating packages to 6.43.8 on one of my devices seems to also update the FW, which means the script to update FW is unneccessary. Are any of the above steps redundant?

Have you enabled auto-upgrade feature under System/RouterBOARD menu? It was introduced few versions ago (not in v6.43.8, but earlier). However, option is disabled by default so someone must have enabled it on your router.