| #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 "T800_SZZT_v02.MP1_MR1.01b01.06"//needs to be modified if upgrade version |
| #define LYNQ_SW_INSIDE_VERSION "T800_SZZT_v02.MP1_MR1.01b01.08"//only for insde check |
| |
| //#define GET_DATA_LEN 64 |
| #define BUF_LEN 258 |
| #define LYNQ_UCI_RO_SECTION "lynq_version" |
| #define LYNQ_UCI_RO_KEY_VERSION "LYNQ_SW_VERSION" |
| #define LYNQ_UCI_RO_KEY_INSIDE_VERSION "LYNQ_SW_INSIDE_VERSION" |
| |
| |
| int main(int argc, const char *argv[]) |
| { |
| //char data[GET_DATA_LEN] = ""; |
| char buf[BUF_LEN] = ""; |
| char buf_insde[BUF_LEN] = ""; |
| int ret = 0; |
| |
| |
| //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_VERSION, LYNQ_SW_VERSION); |
| 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); |
| |
| lynq_uci_set(buf); |
| lynq_uci_set(buf_insde); |
| //} |
| |
| return ret; |
| } |