script.sh 228 B

1234
  1. #!/usr/bin/env bash
  2. TOKEN=$(cat /srv/ipingus6/token.conf)
  3. IP=$(ip a | grep 2001 | awk '{print $2}' | awk -F '/' '{print $1}')
  4. curl -sSL "https://freedns.afraid.org/dynamic/update.php?$TOKEN&address=$IP" >> /tmp/ipingus6.log 2>&1