找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1975|回复: 5

NEWIFI3编程器固件备份方法

[复制链接]
本帖最后由 chencencc 于 2018-11-24 08:56 编辑

开启TELNET后,先不要刷机和执行其它操作;
复制下面的命令执行
  1. /usr/sbin/make_fullflash.sh
复制代码

我不知道官方为什么会有这个脚本,但它确实在哪里。执行完WINSCP去/tmp目录找fullflash.bin


把这个文件复制出来,就是最全的编程器固件了。比分区备份后期使用方便。
我的恩山、我的无线 The best wifi forum is right here.
官方备份文件,恢复系统用的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
  1. #!/bin/sh

  2. day=$(date +"%Y%m%d")
  3. FULLFLASH_FILE="/tmp/newifi-d2-"$day"-fullflash.bin"
  4. OPT_PATH="/etc/hotplug.d/block/30_mount-opt"
  5. UMOUNT_FILE="/usr/sbin/xc-usb-umount"
  6. GRO_FILE="/etc/rc.local"

  7. set_wifi_and_led(){
  8.     uci batch <<EOF
  9.         set wireless.ra0.channel='11'
  10.         set wireless.ra0.noscan='1'
  11.         set wireless.rai0.channel='149'
  12.         set wireless.rai0.htmode='VHT80'
  13.         commit wireless

  14.         delete system.internet_led
  15.         commit system
  16. EOF
  17. }

  18. gro_off(){
  19.        
  20.         [ -n $GRO_FILE ] && sed -i '$i\echo 0 > /proc/napi_gro_en' $GRO_FILE
  21.         [ -n $GRO_FILE ] && sed -i '$i\/usr/sbin/factory-for-telnet.sh &' $GRO_FILE
  22.        
  23.         /etc/init.d/telnet disable
  24. }

  25. make_fullflash(){
  26.         mtd=$(cat /proc/mtd | grep "fullflash" | awk -F ":" '{print $1}')
  27.         if [ -n "$mtd" ];then
  28.                 touch $FULLFLASH_FILE
  29.                 [ -f $FULLFLASH_FILE ] && dd if=/dev/$mtd of=/$FULLFLASH_FILE conv=fdatasync
  30.         fi
  31. }


  32. [ -f $OPT_PATH ] && rm -f $OPT_PATH
  33. [ -f $UMOUNT_FILE ] && rm -f $UMOUNT_FILE

  34. set_wifi_and_led

  35. gro_off

  36. make_fullflash
复制代码

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

之前我试过在最新的版本下面用这个脚本备份,然后并不能实现!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

为什么我执行了这个命令,并没有生成编程器固件?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我也是,生成不了编程器固件!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 01:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表