ddns-scripts/force_v4_update.sh

12 lines
294 B
Bash
Executable File

#!/bin/bash
DDNS_V4=$(dig companioncu.be A +short @ns.geekify.de)
PUBLIC_V4=$(ip -f inet addr show ppp0 | awk '/inet / {print $2}')
if [ "$DDNS_V4" = "$PUBLIC_V4" ]; then
#echo "no update needed"
exit 0
else
bash "$(dirname $0)/multiupdater.sh" "THESE" "DONOT" "MATTER" "$PUBLIC_V4"
fi