Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions utils/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ AM_CFLAGS = -D_ANSC_LINUX
AM_CFLAGS += -D_ANSC_USER
AM_CFLAGS += -D_ANSC_LITTLE_ENDIAN_
AM_CFLAGS += -Wall -Werror $(CFLAGS)
AM_CFLAGS += -I${STAGING_INCDIR}/syscfg

lib_LTLIBRARIES = libfwutils.la
libfwutils_la_SOURCES = rdk_fwdl_utils.c \
Expand Down
8 changes: 4 additions & 4 deletions utils/common_device_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "common_device_api.h"
#include "rdkv_cdl_log_wrapper.h"
#include <syscfg/syscfg.h>

#define PARTNERID_INFO_FILE "/tmp/partnerId.out"

Expand Down Expand Up @@ -132,11 +133,10 @@ size_t GetPartnerId( char *pPartnerId, size_t szBufSize )
fgets( pPartnerId, szBufSize, fp );
fclose( fp );
}
else if( (fp = popen( "syscfg get PartnerID", "r" )) != NULL )
else if (syscfg_get(NULL, "PartnerID", buffer, sizeof(buffer)) == 0)
{
fgets( pPartnerId, szBufSize, fp );
pclose( fp );
}
snprintf(pPartnerId, szBufSize, "%s", buffer);
}
else
{
snprintf( pPartnerId, szBufSize, "comcast" );
Expand Down
Loading