iup: option 224 fix ciclying reboot refs #9077

This commit is contained in:
Alex Oprea 2016-05-12 18:19:33 +02:00
parent 92a6b78786
commit 82d4fef6a6

View file

@ -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 &