#!/bin/sh

. /usr/lib/ddns/dynamic_dns_functions.sh

if [ "$INTERFACE" = "wan" ] && [ "$ACTION" = "ifup" -o "$ACTION" = "update" ]
then
	now=$(cat /proc/uptime | awk 'FS="[.]+" {print $1}')
	if [ $now -ge 100 ]; then
		/etc/init.d/shnat_cli restart	# to clean SHNAT session
	fi
	start_daemon_for_all_ddns_sections
fi


