Mod aaa-12 解决静态路由配置恢复时ppp0接口相关配置问题

RCA:
SOL:
修改人:tongyebin
检视人
This commit is contained in:
tongyebin 2019-10-23 16:39:53 +08:00
parent 792104f0ca
commit 0fd33a8e94
1 changed files with 11 additions and 20 deletions

View File

@ -222,7 +222,6 @@ void _start_lte(void)
char result[RESULT_LENGTH] = {0};
int wait_time_phase1 = 0;
int wait_time_phase2 = 0;
int recover = 0;
g_status = STARTING;
while(wait_time_phase1 < 60)
{
@ -230,16 +229,12 @@ void _start_lte(void)
{
g_status = CONNECTED;
rpc_log_info("connected\n");
if(!recover)
{
sleep(1);
//执行各模块与ppp0有关的脚本
if(recover_static_route())
{
rpc_log_info("recover ppp0 route success");
}
recover = 1;
}
return;
}
else
@ -279,16 +274,12 @@ void _start_lte(void)
if(start_success())
{
g_status = CONNECTED;
if(!recover)
{
sleep(1);
//执行各模块与ppp0有关的脚本
if(recover_static_route())
{
rpc_log_info("recover ppp0 route success");
}
recover = 1;
}
pclose(f);
return;
}