BusyBox v1.18.4 (2017-06-30 17:46:01 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
profile close core dump
WAP(Dopra Linux) #
2.执行以下脚本
#!/bin/sh
dev=`cat /proc/mtd|awk '{print $1}'|sed -n '2,$p'| sed 's/://g'`
for i in $dev ;
do
dd if=/dev/$i of=/tmp/$i.bin ;
done
cd /tmp
cat /proc/mtd > mtd.log
tar czvf fw.tar.gz *.bin mtd.log
tftp -p -l fw.tar.gz tftpsvr-ip
rm -f fw.tar.gz *.bin