Interrupt attempts at using dnscrypt if the configuration changes.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
exec ./handle-control-change.sh
|
||||
+5
-1
@@ -8,7 +8,7 @@ PAUSE_INCREMENT=0.1
|
||||
[ ! -e "$DNSCRYPT_FILE" ] && exit 0
|
||||
|
||||
pause=0
|
||||
while :; do
|
||||
while [ -e "$DNSCRYPT_FILE" ]; do
|
||||
if [ $pause -lt $PAUSE_MAX ]; then
|
||||
pause=$((pause + $PAUSE_INCREMENT))
|
||||
fi
|
||||
@@ -29,4 +29,8 @@ while :; do
|
||||
break
|
||||
done
|
||||
|
||||
if [ ! -e "$DNSCRYPT_FILE" ]; then
|
||||
touch "$CONTROL_DIR"
|
||||
fi
|
||||
|
||||
exec ./exceptions-add.sh
|
||||
|
||||
Reference in New Issue
Block a user