#!/bin/sh

/www/cgi-bin/webstax/config --apply_auto_detection

PROTOCOL=`uci -P /var/state/ get network.wan.proto`

if [ ifup == "ACTION" ]; then
	if [ $PROTOCOL == "static" ]; then
		uci -P /var/state get network.wan.ipaddr && /www/cgi-bin/webstax/config --apply_chk_wan_status 1
	fi
fi

 


 