blob: 72994ba82383caa1caf288357598a2cd6b4d9791 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#include <stdio.h>
2#include <sys/socket.h>
3#include <netinet/in.h>
4#include <arpa/inet.h>
5#include <strings.h>
6#include<stdlib.h>
7#include <include/lynq_uci.h>
8
9
10
11//#define USER_LOG_TAG "lynq_default"
rjw5fd967e2022-05-17 18:50:08 +080012#define LYNQ_SW_VERSION "T800v02.MP1_MR1.01b02.02"//needs to be modified if upgrade version
13#define LYNQ_SW_INSIDE_VERSION "T800_GSW_v02.MP1_MR1.01b02.05"//only for insde check
xjb04a4022021-11-25 15:01:52 +080014
15//#define GET_DATA_LEN 64
16#define BUF_LEN 258
17#define LYNQ_UCI_RO_SECTION "lynq_version"
rita6212cdd2022-03-25 03:48:51 -040018#define LYNQ_UCI_RO_KEY_VERSION "LYNQ_SW_VERSION"
19#define LYNQ_UCI_RO_KEY_INSIDE_VERSION "LYNQ_SW_INSIDE_VERSION"
xjb04a4022021-11-25 15:01:52 +080020
21
22int main(int argc, const char *argv[])
23{
24 //char data[GET_DATA_LEN] = "";
rita6212cdd2022-03-25 03:48:51 -040025 char buf[BUF_LEN] = "";
26 char buf_insde[BUF_LEN] = "";
27 int ret = 0;
xjb04a4022021-11-25 15:01:52 +080028
29
30 //lynq_get_value(LYNQ_UCI_RO_FILE, LYNQ_UCI_RO_SECTION, LYNQ_UCI_RO_KEY, data);
31 //if(strncmp(LYNQ_SW_VERSION, data, sizeof(LYNQ_SW_VERSION))!=0)
32 //{
rita6212cdd2022-03-25 03:48:51 -040033 sprintf(buf,"%s.%s.%s=%s", LYNQ_UCI_RO_FILE, LYNQ_UCI_RO_SECTION, LYNQ_UCI_RO_KEY_VERSION, LYNQ_SW_VERSION);
34 sprintf(buf_insde,"%s.%s.%s=%s", LYNQ_UCI_RO_FILE, LYNQ_UCI_RO_SECTION, LYNQ_UCI_RO_KEY_INSIDE_VERSION, LYNQ_SW_INSIDE_VERSION);
35
36 lynq_uci_set(buf);
37 lynq_uci_set(buf_insde);
xjb04a4022021-11-25 15:01:52 +080038 //}
39
40 return ret;
41}