NAME=updatedd
CONFIG=/etc/config/$NAME
COMMAND=/usr/bin/$NAME

[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
        [ -x $COMMAND ] && [ -r $CONFIG ] && {
                                include /lib/network
                                scan_interfaces

                                config_get ifname wan ifname
                                [ -n "$ifname" ] && {
					/etc/init.d/updatedd restart
				}
        } &
}
