I've created a simple, standalone shell script for updating an "openwrt" and "mtk-openwrt-feeds" locale repository to keep it up to date automatically.
How to Automate this Script....
-
Create a repo directory e.g.. mkdir /home/user/repo
-
cd /home/user/repo
-
Clone openwrt -
git clone --branch openwrt-24.10 https://git.openwrt.org/openwrt/openwrt.git openwrt -
Clone mtk-feeds -
git clone --branch master https://git01.mediatek.com/openwrt/feeds/mtk-openwrt-feeds -
clone this repo
git clone https://github.com/Gilly1970/Local-OpenWrt-MTK-Feeds-Repository-Update-Script.gitand place the script inside /home/user/repo -
Make the Script Executable -
chmod +x update_repos.sh -
Edit Your Crontab**
-
crontab -e- (If it's your first time, it might ask you to choose a text editor likenano). -
Add the following line to the end of the file. This example will run the script every day at 3:00 AM.
-
0 3 * * * /home/user/repos/update_repos.sh >> /home/user/repos/update.log 2>&1 -
Your local repo will now keep up to date automatically, which you can check with the logs