#!/bin/sh
LOG_TAG="ddns"
. /usr/lib/ddns/dynamic_dns_functions.sh
if [ "$ACTION" = "ifup" ]; then
    echo "Starting sections for interface ${INTERFACE}" | logger -t ${LOG_TAG}
    /etc/init.d/ddns start
elif [ "$ACTION" = "ifdown" ]; then
    echo "Stopping sections for interface ${INTERFACE}" | logger -t ${LOG_TAG}
    stop_daemon_for_all_ddns_sections ${INTERFACE}
fi

