small-package/luci-app-adguardhome/root/usr/share/AdGuardHome/firewall.start

9 lines
237 B
Plaintext
Raw Normal View History

2022-11-04 22:48:07 +08:00
#!/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