Community discussions

MikroTik App
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

rebooting after successful update

Sun Nov 14, 2021 2:42 pm

I am using this script to check for updates
/system package update
check-for-updates once
:delay 1s;
:if ( [get status] = "New version is available") do={ install }

and I've also set autoupgrade
/system routerboard settings
set auto-upgrade=yes

but it needs a further reboot for the new firmware to become the current one.
Can this be done automatically? Maybe creating a flag after a successful update, which triggers the reboot, or creating a script like the first one which checks if the current and upgrade firmware are not the same..
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: rebooting after successful update

Sun Nov 14, 2021 3:14 pm

I got to this which is scheduled a few minutes after the one checking for updates
/system routerboard
:if ( [get current-firmware] != [get upgrade-firmware] ) do={ /system reboot }
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: rebooting after successful update

Mon Nov 15, 2021 3:05 am

Is the most stupid thing you can do: update routerboard just when new release go out...
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: rebooting after successful update

Mon Nov 15, 2021 8:32 am

He does not seems to have read post here on the forum the latest week , or even before that as well.
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: rebooting after successful update

Wed Nov 17, 2021 1:58 am

He does not seems to have read post here on the forum the latest week , or even before that as well.
What do you mean ..

To clarify, I am on Long term updates. Normally one should check out versions he updates to, but long term seem to be ok
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: rebooting after successful update

Wed Nov 17, 2021 8:04 am

Read this thread about 6.45.5 Long Term update (on going problem).
viewtopic.php?t=179260&sid=8e28aacb8b7d ... ac1eaf519c
And this is not the first time some break after a new version is released.

Never ever would I do auto upgrade. Always test on a local non production device of same type. Then if all is OK, update your router(s).
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: rebooting after successful update

Wed Nov 17, 2021 3:04 pm

Point taken. I will reconsider it, although my configuration isnt very demanding
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: rebooting after successful update

Thu Nov 18, 2021 1:27 am

Ok, the point is: there is no software in the world secure enough to install it as soon as it is published.

Who is online

Users browsing this forum: FurfangosFrigyes and 22 guests