6.43.8 secure update script

Hi all,

I want to share the script I made to update to 6.43.8 without losing CPEs.

With new 6.43.8, if you have a country set, you can’t use manual-tx-power or superchannel anyome.
What this mean? It means that if you upgrade to 6.43.8, the update changes superchannel frequency mode to regulatory domain of the country.
How can you avoid this? You can login in the CPE, remove the country, wait to reconnection and then update, but it takes too much to update a CPE.

Here’s my script:

/system script
add name=update source=“/system package update download; /interface wireless set 0 country=no_country_set; /system reboot\r\n”

This is a simple script that:

  1. Downloads latest stable package.
  2. After download, removes country from wlan1
  3. Reboots for installation

You can’t do this in Terminal because /system reboot requires user input, but scripts don’t care about user :smiley:
You just need to paste in new Terminal then run script.
Don’t change script tabulation, commands won’t work if they aren’t in the same line.

The problem with “no country” is that CPE do not scan all frequencies in auto mode.
Google translator sorry