对于指示灯为红色闪烁或者红色常亮的情况,直接将 U 盘插入路由器的 USB 接口,用细长的工具按住 reset,待路由器指示灯变为黄灯闪烁时,松开 reset;对于指示灯为其他状态的情况,需要先断开路由器的电源后,将 U 盘插入路由器的 USB 接口,用细长的工具按住 reset,接通电源,待路由器指示灯变为黄灯闪烁时,松开 reset
大约 3-5 分钟后,指示灯变成黄色常亮状态时可以拔掉 U 盘,此时刷机已经完成正在重启,稍等片刻路由器指示灯变蓝就可以正常使用了
如果在刷机过程中,指示灯黄灯闪烁几秒后变为黄灯常亮状态,说明此次 U 盘刷机过程失败,请检查以上的刷机过程并重新进行刷机操作
echo"Info: https://dco.gitee.io/" echo"Info: For miwifi HD R3D" echo"Info: Checking for prerequisites and creating folders..."
if [ -d /userdisk/data/opt ] then echo"Warning: Folder /userdisk/data/opt exists!" else mkdir -p /userdisk/data/opt mount -o bind /userdisk/data/opt /opt fi # no need to create many folders. entware-opt package creates most for folder in bin etc lib/opkg tmp var/lock do if [ -d "/opt/$folder" ] then echo"Warning: Folder /opt/$folder exists!" echo"Warning: If something goes wrong please clean /opt folder and try again." else mkdir -p /opt/$folder fi done
# Fix for multiuser environment chmod 777 /opt/tmp
# now try create symlinks - it is a std installation if [ -f /etc/passwd ] then ln -sf /etc/passwd /opt/etc/passwd else cp /opt/etc/passwd.1 /opt/etc/passwd fi
if [ -f /etc/group ] then ln -sf /etc/group /opt/etc/group else cp /opt/etc/group.1 /opt/etc/group fi
if [ -f /etc/shells ] then ln -sf /etc/shells /opt/etc/shells else cp /opt/etc/shells.1 /opt/etc/shells fi
if [ -f /etc/shadow ] then ln -sf /etc/shadow /opt/etc/shadow fi
if [ -f /etc/gshadow ] then ln -sf /etc/gshadow /opt/etc/gshadow fi
if [ -f /etc/localtime ] then ln -sf /etc/localtime /opt/etc/localtime fi
echo"Info: Congratulations!" echo"Info: If there are no errors above then Entware was successfully initialized." echo"Info: https://dco.gitee.io/" echo"Info: Found a Bug? Please report at https://dco.gitee.io/" echo"Info: Found a bug? Please report at https://entware.net/"