Ver código fonte

Merge remote-tracking branch 'origin/AW-Regular'

Folus Wen 2 anos atrás
pai
commit
3578d09341
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      EVSE/Projects/AW-Regular/Apps/main.c

+ 7 - 0
EVSE/Projects/AW-Regular/Apps/main.c

@@ -3721,6 +3721,13 @@ void checkTask()
 		DEBUG_INFO("Module_PowerSharing not running, restart it.\n");
 		system ("/root/Module_PowerSharing &");
 	}
+
+	if((system("pidof -s Module_Firewall > /dev/null") != 0) &&
+		ShmSysConfigAndInfo->SysConfig.isReqFirstUpgrade)
+	{
+		DEBUG_INFO("Module_Firewall not running, restart it.\n");
+		system ("/root/Module_Firewall &");
+	}
 }
 
 void checkConnectionTimeout()