Merge "[rdkb][common][apps][Fix filogic reset default fail from dmcli]"
diff --git a/recipes-ccsp/ccsp/ccsp-p-and-m.bbappend b/recipes-ccsp/ccsp/ccsp-p-and-m.bbappend
index 01975af..ab80eea 100644
--- a/recipes-ccsp/ccsp/ccsp-p-and-m.bbappend
+++ b/recipes-ccsp/ccsp/ccsp-p-and-m.bbappend
@@ -2,6 +2,8 @@
 
 require ccsp_common_filogic.inc
 
+SRC_URI_append += " file://filogic-factoryReset.patch"
+
 DEPENDS_append = " utopia curl "
 
 CFLAGS_append = " \
diff --git a/recipes-ccsp/ccsp/files/filogic-factoryReset.patch b/recipes-ccsp/ccsp/files/filogic-factoryReset.patch
new file mode 100644
index 0000000..f627f42
--- /dev/null
+++ b/recipes-ccsp/ccsp/files/filogic-factoryReset.patch
@@ -0,0 +1,12 @@
+diff --git a/source-arm/TR-181/board_sbapi/cosa_x_cisco_com_devicecontrol_apis.c b/source-arm/TR-181/board_sbapi/cosa_x_cisco_com_devicecontrol_apis.c
+index 757fa2bcd..71b0ead0a 100755
+--- a/source-arm/TR-181/board_sbapi/cosa_x_cisco_com_devicecontrol_apis.c
++++ b/source-arm/TR-181/board_sbapi/cosa_x_cisco_com_devicecontrol_apis.c
+@@ -2478,6 +2478,7 @@ CosaDmlDcSetFactoryReset
+ 		pthread_create(&logs, NULL, &backuplogs, (void*)wifiThread);
+ 	      }else
+ 		pthread_create(&logs, NULL, &backuplogs, NULL);
++		v_secure_system("touch /reset-default");
+ 	}
+ #ifdef RDK_ONEWIFI
+ 	if( (factory_reset_mask & FR_ROUTER) && (factory_reset_mask & FR_WIFI)){