Control fallback and other stuff from files
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#! /bin/ksh
|
||||
# /Library/Preferences/SystemConfiguration
|
||||
|
||||
. common.inc
|
||||
|
||||
NETWORK_STATE_FILE="${STATES_DIR}/network-state"
|
||||
DHCP_DNS_FILE="${STATES_DIR}/dhcp-dns"
|
||||
AIRPORT_TOOL="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport"
|
||||
|
||||
. common.inc
|
||||
|
||||
mkdir -p "$STATES_DIR" || exit 1
|
||||
|
||||
ifs=$(ifconfig -a | \
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
DNSCRYPT_BASE_DIR='/var/run/dnscrypt'
|
||||
|
||||
STATES_DIR="${DNSCRYPT_BASE_DIR}/states"
|
||||
CONTROL_DIR="${DNSCRYPT_BASE_DIR}/control"
|
||||
|
||||
INTERFACE_UNBOUND="127.0.0.53"
|
||||
INTERFACE_UNBOUND_MASK="24"
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#! /bin/ksh
|
||||
|
||||
PAUSE_MAX=10
|
||||
PAUSE_INCREMENT=0.1
|
||||
|
||||
. common.inc
|
||||
|
||||
PAUSE_MAX=10
|
||||
PAUSE_INCREMENT=0.1
|
||||
FALLBACK_FILE="${CONTROL_DIR}/fallback"
|
||||
|
||||
[ ! -e "$FALLBACK_FILE" ] && exit 0
|
||||
./check-network-change.sh || exit 0
|
||||
./check-hijacking.sh && exit 0
|
||||
./set-dns-to-dhcp.sh
|
||||
|
||||
Reference in New Issue
Block a user