diff --git a/source/EthSsp/ssp_main.c b/source/EthSsp/ssp_main.c index f87704e..7802975 100644 --- a/source/EthSsp/ssp_main.c +++ b/source/EthSsp/ssp_main.c @@ -321,8 +321,10 @@ int main(int argc, char* argv[]) pComponentName = CCSP_COMPONENT_NAME_ETHAGENT; +#if !(defined(_PLATFORM_GENERICARM_) && defined(USE_SYSTEMD_NOTIFICATIONS)) if ( bRunAsDaemon ) daemonize(); +#endif CcspTraceInfo(("\nAfter daemonize before signal\n")); diff --git a/source/TR-181/board_sbapi/cosa_ethernet_apis.c b/source/TR-181/board_sbapi/cosa_ethernet_apis.c index b5d8017..25122da 100755 --- a/source/TR-181/board_sbapi/cosa_ethernet_apis.c +++ b/source/TR-181/board_sbapi/cosa_ethernet_apis.c @@ -164,7 +164,9 @@ extern char g_Subsystem[BUFLEN_32]; #include "cosa_ethernet_manager.h" #endif #if defined (FEATURE_RDKB_WAN_MANAGER) -#if defined (_CBR2_PRODUCT_REQ_) +#if defined (_PLATFORM_GENERICARM_) +#define TOTAL_NUMBER_OF_INTERNAL_INTERFACES 10 +#elif defined (_CBR2_PRODUCT_REQ_) #define TOTAL_NUMBER_OF_INTERNAL_INTERFACES 6 #elif defined (_XER5_PRODUCT_REQ_) || defined(_SCER11BEL_PRODUCT_REQ_) || defined(_SCXF11BFL_PRODUCT_REQ_) #define TOTAL_NUMBER_OF_INTERNAL_INTERFACES 5 @@ -3947,7 +3949,7 @@ ANSC_STATUS CosaDmlTriggerExternalEthPortLinkStatus(char *ifname, BOOL status) { ANSC_STATUS retStatus; INT IfIndex = -1; - CcspTraceInfo(("%s.%d Enter \n",__FUNCTION__,__LINE__)); + CcspTraceInfo(("%s.%d Enter (ifname=%s)\n", __FUNCTION__, __LINE__, ifname ? ifname : "(null)")); if (ifname == NULL) { CcspTraceError(("%s Invalid data \n", __FUNCTION__)); diff --git a/source/TR-181/middle_layer_src/plugin_main_apis.c b/source/TR-181/middle_layer_src/plugin_main_apis.c index 9961260..ff8974d 100644 --- a/source/TR-181/middle_layer_src/plugin_main_apis.c +++ b/source/TR-181/middle_layer_src/plugin_main_apis.c @@ -77,6 +77,10 @@ extern int sock; #endif +#if defined(_PLATFORM_GENERICARM_) && defined(USE_SYSTEMD_NOTIFICATIONS) +#include +#endif + /********************************************************************** caller: owner of the object @@ -173,6 +177,9 @@ CosaBackEndManagerInitialize printf("CosaEthInferface initialization done!\n"); +#if defined(_PLATFORM_GENERICARM_) && defined(USE_SYSTEMD_NOTIFICATIONS) + sd_notify(0,"READY=1"); +#endif return returnStatus; }