mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
13 lines
223 B
Bash
Executable file
13 lines
223 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
|
configpath=$(uci get AdGuardHome.AdGuardHome.configpath)
|
|
while :
|
|
do
|
|
sleep 10
|
|
if [ -f "$configpath" ]; then
|
|
/etc/init.d/AdGuardHome do_redirect 1
|
|
break
|
|
fi
|
|
done
|
|
return 0
|