Skip to content

Gilly1970/Local-OpenWrt-MTK-Feeds-Repository-Update-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Local-OpenWrt-MTK-Feeds-Repository-Update-Script

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.

Setting Up

How to Automate this Script....

  1. Create a repo directory e.g.. mkdir /home/user/repo

  2. cd /home/user/repo

  3. Clone openwrt - git clone --branch openwrt-24.10 https://git.openwrt.org/openwrt/openwrt.git openwrt

  4. Clone mtk-feeds - git clone --branch master https://git01.mediatek.com/openwrt/feeds/mtk-openwrt-feeds

  5. clone this repo git clone https://github.com/Gilly1970/Local-OpenWrt-MTK-Feeds-Repository-Update-Script.git and place the script inside /home/user/repo

  6. Make the Script Executable - chmod +x update_repos.sh

  7. Edit Your Crontab**

  8. crontab -e - (If it's your first time, it might ask you to choose a text editor like nano).

  9. Add the following line to the end of the file. This example will run the script every day at 3:00 AM.

  10. 0 3 * * * /home/user/repos/update_repos.sh >> /home/user/repos/update.log 2>&1

  11. Your local repo will now keep up to date automatically, which you can check with the logs

About

Keep local repository up to date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages