#OpenWrt has a web interface which can build a custom firmware image for your router:
https://firmware-selector.openwrt.org/?version=23.05.0-rc2&target=ipq806x%2Fgeneric&id=netgear_r7800
You can easily add packages and modify the boot scripts. Awesome! 🤩