This commit is contained in:
quindecim 2019-11-11 05:13:28 -05:00
parent 59a5aaf4dc
commit 6575ceb68a
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ MODDIR=${0%/*}
# change config directory from /system/etc to /data/media/0/dnscrypt-proxy # change config directory from /system/etc to /data/media/0/dnscrypt-proxy
# /sdcard is softlink to /data/media/0 in LineageOS 16. # /sdcard is softlink to /data/media/0 in LineageOS 16.
#Check, every 15 seconds. whether an instance of dnscrypt-proxy is running, if not, keep looping till network is available & start dnscrypt-proxy. # Check, every 15 seconds. whether an instance of dnscrypt-proxy is running,
# if not, keep looping till network is available & start dnscrypt-proxy.
while ! [ `pgrep -x dnscrypt-proxy` ] ; do while ! [ `pgrep -x dnscrypt-proxy` ] ; do
$MODDIR/system/bin/dnscrypt-proxy -config /data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml && sleep 15; $MODDIR/system/bin/dnscrypt-proxy -config /data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml && sleep 15;