mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
14 lines
223 B
Bash
14 lines
223 B
Bash
|
#!/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
|