板卡自动挂载
#include <stdio.h>#include <stdlib.h>int main(int argc,char*argv[]){char cmd[30]="cd /proc/scsi/usb-storage";if(system(cmd)!=-1){printf("find usb!");system("mount /dev/sda1 /mnt");system("cd mnt/");system("mkdir copycode");system("cp -rf /mnt/wan/ /mnt/copycode/");}elseprintf("can't find!");}
补充:综合编程 , 其他综合 ,