[Feature] add GA346 baseline version
Change-Id: Ic62933698569507dcf98240cdf5d9931ae34348f
diff --git a/src/lynq/packages/apps/lynq-default/lynq_default.c b/src/lynq/packages/apps/lynq-default/lynq_default.c
new file mode 100644
index 0000000..4daf6e7
--- /dev/null
+++ b/src/lynq/packages/apps/lynq-default/lynq_default.c
@@ -0,0 +1,37 @@
+#include <stdio.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <strings.h>
+#include<stdlib.h>
+#include <include/lynq_uci.h>
+
+
+
+//#define USER_LOG_TAG "lynq_default"
+#define LYNQ_SW_VERSION "T800v01.MP1_GA.01b02"//needs to be modified if upgrade version
+
+
+//#define GET_DATA_LEN 64
+#define BUF_LEN 258
+#define LYNQ_UCI_RO_SECTION "lynq_version"
+#define LYNQ_UCI_RO_KEY "LYNQ_SW_VERSION"
+
+
+
+int main(int argc, const char *argv[])
+{
+ //char data[GET_DATA_LEN] = "";
+ char buf[BUF_LEN] = "";
+
+
+ //lynq_get_value(LYNQ_UCI_RO_FILE, LYNQ_UCI_RO_SECTION, LYNQ_UCI_RO_KEY, data);
+ //if(strncmp(LYNQ_SW_VERSION, data, sizeof(LYNQ_SW_VERSION))!=0)
+ //{
+ sprintf(buf,"%s.%s.%s=%s", LYNQ_UCI_RO_FILE, LYNQ_UCI_RO_SECTION, LYNQ_UCI_RO_KEY, LYNQ_SW_VERSION);
+ int ret = lynq_uci_set(buf);
+
+ //}
+
+ return ret;
+}