修复 -f -u 参数下无法更新固件的问题

This commit is contained in:
Hyy2001X 2021-06-09 09:49:09 +08:00
parent 9f791fd604
commit b07719fae5
1 changed files with 3 additions and 1 deletions

View File

@ -307,6 +307,7 @@ PREPARE_UPGRADES() {
}
done
REMOVE_FW_CACHE quiet ${FW_SAVE_PATH}
Upgrade_Option="${Upgrade_Command} -q"
case $1 in
-n)
Upgrade_Option="${Upgrade_Command} -n"
@ -400,7 +401,8 @@ EOF
esac
[[ ! ${Test_Mode} == 1 ]] && {
sleep 3
DO_UPGRADE ${Upgrade_Option} ${FW_SAVE_PATH}/${FW_Name}
chmod 777${FW_SAVE_PATH}/${FW_Name}
DO_UPGRADE ${Upgrade_Option} ${FW_SAVE_PATH}/${FW_Name}
} || {
TIME b "[Test Mode] 执行: ${Upgrade_Option} ${FW_Name}"
TIME b "[Test Mode] 测试模式运行完毕!"