12 lines
222 B
Bash
Executable File
12 lines
222 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. ./common.inc
|
|
|
|
FALLBACK_FILE="${CONTROL_DIR}/fallback"
|
|
|
|
[ ! -e "$FALLBACK_FILE" ] && exit 0
|
|
./check-network-change.sh || exit 0
|
|
./set-dns-to-dhcp.sh
|
|
[ ! -e "$DNSCRYPT_FILE" ] && exit 0
|
|
./switch-to-dnscrypt.sh
|