Skip to content

Instantly share code, notes, and snippets.

@jedmund
jedmund / ddns-start.sh
Last active January 17, 2019 05:58 — forked from OrcaXS/ddns-start.sh
Google Dynamic DNS update script for Tomato firmware
#!/bin/sh
set -u
#set -x
U=username
P=password
H=hostname
IP="$(ip -o addr show ppp0 | awk '/inet / {print $4}')"
DIGIP="$(dig +short $H)"