iup: option 224 follows standard

This commit is contained in:
Sukru Senli 2016-04-29 10:46:41 +02:00
parent 51d12dfa94
commit c051d61f49

View file

@ -60,16 +60,18 @@ if [ $url ] && [ $active -eq 1 ]; then
json_get_var filesystem filesystem
if [ "$filesystem" == "JFFS2" ] ; then
firmware=$firmware.w
firmware2=$firmware.w
else
firmware=$firmware.y
firmware2=$firmware.y2
fi
if [ "$sofwareminuspath" == "${sofwareminuspath/$firmware/}" ] ; then
if [ "$sofwareminuspath" == "${sofwareminuspath/$firmware/}" -o "$sofwareminuspath" == "${sofwareminuspath/$firmware2/}" ] ; then
echo "Image found $url will start flashing"
/sbin/sysupgrade -v $url
/sbin/sysupgrade -v $url &
exit 1
else
echo "Will not update software, already up to date"
exit 0
fi
fi