Autoupgrade: Scheduled package upgrades for OpenWrt

Hey all, I made a thing. Its basic but gets the job done.

It lets you create a list of installed packages you want to auto upgrade on a schedule. You can also just keep the schedule disabled, and use this as an easy way to upgrade a bunch of packages at once.

I have only tested this with opkg, but apk should work as well.
Please test and open any issues on GitHub if you find a bug!

Any ideas or improvements? Let me know.
I do hope to eventualy PR to openwrt/packages and openwrt/luci

Not to rain on your parade but upgrading packages is not advised, see https://openwrt.org/meta/infobox/upgrade_packages_warning

Upgrade the whole image instead using attended-sysupgrade or owut.

4 Likes

That's why by default the upgrade list is empty :slight_smile:

The idea is, you pick and choose what you want to be auto upgraded. I'm very well aware of the state of custom packages. (I mainly work with a custom Qualcomm OpenWRT build with unique feeds and packages)

It's mainly good for user installed packages that weren't originally part of the whole image. However it gives the user the freedom/choice. I figured that matches the spirit of the OpenWRT project as a whole.

Maybe a disclaimer not to blindly add packages to the list would be good for the Luci app :thinking: