#!/bin/sh

. /lib/functions.sh


local iface 
iface=${INTERFACE:0:3}
if [ "$iface" = "wan" -a "$ACTION" = "ifup" ]; then
	#echo -e "`date +%Y%m%d-%H:%M:%S` $INTERFACE $ACTION ready to ntp" > /dev/console
	/etc/init.d/sysntpd restart
fi


