small-package/luci-app-adguardhome/root/usr/share/AdGuardHome/watchconfig.sh

12 lines
221 B
Bash
Raw Normal View History

2022-11-04 22:48:07 +08:00
#!/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
2023-02-20 08:38:49 +08:00
return 0