Skip to content

Commit

Permalink
ATVServices: Stick to device defaults for DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
notheowner committed Feb 7, 2025
1 parent 6b4c65a commit 5603374
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom/ATVServices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
POGOPKG=com.nianticlabs.pokemongo
CONFIGFILE='/data/local/tmp/emagic.config'
logfile=/data/local/tmp/emagic.log
setprop net.dns1 1.1.1.1 && setprop net.dns2 8.8.8.8
# Default to ROM's DNS settings for now.
# setprop net.dns1 1.1.1.1 && setprop net.dns2 8.8.8.8

# Check if $CONFIGFILE exists and has data.
get_config() {
Expand Down Expand Up @@ -276,7 +277,7 @@ if ! [ -z "$MITMPKG" ]; then
sleep_duration=120
sleep $((sleep_duration + $RANDOM % 10))
if [[ $counter -gt 3 ]]; then
log "Count threshold of $counter reached. Rebooting device..."
log "Restart threshold of $counter reached. Rebooting device..."
webhook "Restart threshold of $counter reached. Rebooting device..."
reboot
sleep 60 # In case reboot takes too long for some reason
Expand Down

0 comments on commit 5603374

Please sign in to comment.