Disable firmware update via command (not web interface)

i have a router gl inet b1300. I created a small program using the ssh command line. I’ve been looking for quite a long time. namely how to disable automatic firmware upgrade using the command. so I can put it in my program. what happens when his glinet gets an internet connection then he is automatically upgraded. and my program can’t be reused. have to downgrade manually.

any solution?.

thanks for the attention

About firmware Auto upgrade: if you do not enable this in the UI, the router will not upgrade firmware automatically.

About your own script missing after upgrade, here is what you can do:

You can check /etc/sysupgrade.conf file. The content should be like this

## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/etc/glproduct

If your script is in /root/, you should add “/root” in the file, like below

## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/etc/glproduct
/root/

Then after upgrade the script is still there

thanks alot dude.
really help me… :slight_smile:

1 Like