#! /bin/sh
# Hook in to /sbin/pump command.
# Other commands can be plugged in here also.
command=$1
dev=$2
ip=$3

if [ "$command"x = "up"x -o "$command"x = "renewal"x ]; then
   logger -t ddclient "$command $dev $ip"
   /bin/ddclient -ip $ip -refresh -retry 2>&1 | logger -t ddclient
fi
