新增syslog 和kernel log 输出控制机制
Change-Id: I25bbc0709deed5e30bd29cb34854c1a7ed8a7d41
diff --git a/mbtk/mbtk_logd/alog_read.c b/mbtk/mbtk_logd/alog_read.c
index cfd2c6d..5e86138 100755
--- a/mbtk/mbtk_logd/alog_read.c
+++ b/mbtk/mbtk_logd/alog_read.c
@@ -223,7 +223,12 @@
static char buffer[MAX_BUFFER_SIZE] = {0};
static int buffer_index = 0;
radio_globalPtr = buffer;
-
+
+ if(access("/etc/syslog_close", F_OK) == 0)
+ {
+ return 0;
+ }
+
if(fcntl(fd_radio, F_GETFL) == -1 || access(tmp_log, W_OK) != 0)
{
fd_radio = open(tmp_log, O_CREAT | O_WRONLY| O_APPEND, 0600);