mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-02 23:44:37 +01:00
iup: option 224 fix ciclying reboot refs #9077
This commit is contained in:
parent
92a6b78786
commit
82d4fef6a6
1 changed files with 2 additions and 9 deletions
|
|
@ -58,15 +58,8 @@ if [ $url ] && [ $active -eq 1 ]; then
|
|||
local sysinfo=$(ubus call router quest "{ \"info\": \"system\" }")
|
||||
json_load "$sysinfo"
|
||||
json_get_var firmware firmware
|
||||
json_get_var filesystem filesystem
|
||||
if [ "$filesystem" == "JFFS2" ] ; then
|
||||
firmware1=$firmware.w
|
||||
firmware2=$firmware.w
|
||||
else
|
||||
firmware1=$firmware.y
|
||||
firmware2=$firmware.y2
|
||||
fi
|
||||
if [ "$softwareminuspath" == "${softwareminuspath/$firmware1/}" -o "$softwareminuspath" == "${softwareminuspath/$firmware2/}" ] ; then
|
||||
local firmware_new=${softwareminuspath%.*} # remove extension (.w, .y or .y2) from filename
|
||||
if [ "$firmware_new" != "$firmware" ] ; then
|
||||
echo "Image found $url will start flashing"
|
||||
wait_for_dns $url
|
||||
/sbin/sysupgrade -v $url &
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue