Skip to content

Shell script to update AdGuardHome on GL.iNet and Asus routers

License

Notifications You must be signed in to change notification settings

phantasm22/AdGuardHome-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AdGuardHome-Updater

Shell script to update AdGuardHome on GL.iNet and Asus based routers. Others may work but unsupported.

Features

  1. Checks for dependencies:
    • Free disk space to upgrade
    • Properly installed and running version of AGH
    • Checks for the correct model and fails if you aren’t running the correct version
  2. Downloads and parses the available beta and release versions of AGH comparing to your current version and presents an output of the same
  3. Allows you to switch from beta to release and vice versa or just upgrade to the latest version of your chosen branch (if available)
  4. Will fetch the correct go binary based on your arch type
  5. Extracts the tarball (with a check that it can find the new binary file)
  6. Creates a backup of your existing binary and config files
  7. Disables your AGH service (temporarily)
  8. Copies new AGH binary into place
  9. Reloads AGH service
  10. Cleans up temp files created
  11. Status along the way with error handling and graceful exiting if something fails (e.g. cleanup of temp files)

Tested Routers

  1. GL.iNet - MIPS
  2. Asus - 64Bit ARM

Installation

  1. SSH to your router
  2. Change to the directory you'd like to download AGH updater
  3. wget https://raw.githubusercontent.com/phantasm22/AdGuardHome-updater/main/update-agh.sh
  4. chmod +x ./update-agh.sh
  5. ./update-agh.sh

About

Shell script to update AdGuardHome on GL.iNet and Asus routers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages