Exemplo n.º 1
0
void dsl_configure(int req)
{
	if (req == 0)
	{
		convert_dsl_config_num();
	}

	if (req == 1)
	{
		convert_dsl_wan();
	}

	if (req == 2)
	{
#ifdef RTCONFIG_DSL_TCLINUX
		eval("req_dsl_drv", "rmvlan", nvram_safe_get("dslx_rmvlan"));

		//set debug mode before reloadpvc
		if(strstr(nvram_safe_get("dslx_pppoe_options"), "debug")) {
			eval("req_dsl_drv", "wandebug", "on");
		}
		else {
			eval("req_dsl_drv", "wandebug", "off");
		}
#endif
		convert_dsl_config_num();
		eval("req_dsl_drv", "reloadpvc");
		convert_dsl_wan();
	}
}
Exemplo n.º 2
0
void convert_dsl_wan_settings(int req)
{
	char buf[32];

	if (req == 0)
	{
		convert_dsl_config_num();
	}

	if (req == 1)
	{
		convert_dsl_wan();
	}

	if (req == 2)
	{
		convert_dsl_config_num();
		eval("req_dsl_drv", "reloadpvc");		
		convert_dsl_wan();		
	}

}