全shell光猫备份系统分区的命令,欢迎试用
本帖最后由 ma20at 于 2017-10-20 14:03 编辑用笔记本直连光猫,并下载运行一个tftp服务,把下面的tftpsvr-ip换成你自己电脑的ip,欢迎各位使用并分享自己的分区造福网友。
苹果越狱的大婶们也说不能公布,要不苹果会封杀~然后一边自己做越狱,一边找赞助商数钞票去了{:7_207:}
1.telnet登录光猫,用户root ,密码adminHW,
Login:root
Password:
WAP>su
success!
SU_WAP>shell
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 -ffw.tar.gz *.bin
虽然看不懂,但还是觉得很有用 感谢分享~标记 朋友,有把分区备份文件,恢复到光猫里的命令么 顶楼主,说的太好了。
备份完之后,如何打包?再来个教程。。。。就和谐了。。。。 怎么执行脚本?
登陆后执行vibackup.sh 创建一个脚本文件
按i键 进入编辑模式
复制粘贴上面的脚本
按esc键 退出编辑模式
输入:wq 保存
执行chmod u+x backup.sh
./backup.sh
快去试试吧 备份出来,又有啥用呢?