mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
8 lines
237 B
Bash
Executable file
8 lines
237 B
Bash
Executable file
#!/bin/sh
|
|
|
|
AdGuardHome_enable=$(uci get AdGuardHome.AdGuardHome.enabled)
|
|
redirect=$(uci get AdGuardHome.AdGuardHome.redirect)
|
|
|
|
if [ $AdGuardHome_enable -eq 1 -a "$redirect" == "redirect" ]; then
|
|
/etc/init.d/AdGuardHome do_redirect 1
|
|
fi
|