mirror of
https://github.com/kenzok8/small-package
synced 2025-09-18 18:51:16 +08:00
12 lines
221 B
Bash
Executable File
12 lines
221 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 |