1
0
mirror of https://github.com/kenzok8/small-package synced 2025-09-18 18:51:16 +08:00
Files
small-package/luci-app-adguardhome/root/usr/share/AdGuardHome/watchconfig.sh
github-actions[bot] 35ccfc35db update-09.24
2021-09-24 19:49:47 +08:00

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