Download and run this script on a modern Debian or Ubuntu OS to quickly and easily create custom OpenWrt builds. Upon completion, resulting files and images will be copied to a directory named "bin" within the directory containing the "build.sh" script.
The script will ask to add a password for the root user in the build. The password will be hashed and then set in "/etc/shadow" on the first boot. If you want to leave the password blank then enter nothing for the password and the verification during the build process.
To add or remove packages from the new build, create a file named "opkg" in the directory containing "build.sh" script and list those packages in that file.
To make changes in the configuration of the new build, create a file named "uci" in the directory containing the "build.sh" script and list the "uci" commands in that file.
Custom packages not found in the OpenWrt repository can be placed in a directory named "packages" inside the directory containing the "build.sh" script or add a URLs for external repositories to a file named "repos" located inside the same directory as the "build.sh" script.
Any extra files, scripts, configurations, etc. that you want included in the new build can be placed inside a directory named "files" within the directory containing the "build.sh" script. Those files need to be structured within directories exactly like where they are to be added to the new system.
Download
wget "https://github.com/ctonton/Quick_OpenWrt/raw/main/build.sh" && chmod +x build.shRun
bash build.shFor more information about using the Image Builder, visit https://openwrt.org/docs/guide-user/additional-software/imagebuilder