feat: create cook branch
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
//#include <sys/io.h>
|
||||
#include <sys/io.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/msg.h>
|
||||
#include <sys/sem.h>
|
||||
|
||||
@@ -29,8 +29,7 @@ static int GetSysCreatedTime()
|
||||
unsigned char created_time_des[128] = {0}, TmpStr[64]= {0};
|
||||
|
||||
memset(created_time, 0, 64);
|
||||
//sprintf(buf,"tune2fs -l /dev/sda1 | grep create >../log/created_time.txt");
|
||||
sprintf(buf,"ls -lact --full-time /etc | tail -1 | awk '{print $6,$7}' >../log/created_time.txt");
|
||||
sprintf(buf,"tune2fs -l /dev/sda1 | grep create >../log/created_time.txt");
|
||||
system(buf);
|
||||
fpConf = fopen("../log/created_time.txt","r");
|
||||
if(fpConf != NULL)
|
||||
|
||||
Reference in New Issue
Block a user