mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iup: option 224 follows standard
This commit is contained in:
parent
51d12dfa94
commit
c051d61f49
1 changed files with 14 additions and 12 deletions
|
|
@ -59,17 +59,19 @@ if [ $url ] && [ $active -eq 1 ]; then
|
|||
json_get_var firmware firmware
|
||||
json_get_var filesystem filesystem
|
||||
if [ "$filesystem" == "JFFS2" ] ; then
|
||||
firmware=$firmware.w
|
||||
firmware=$firmware.w
|
||||
firmware2=$firmware.w
|
||||
else
|
||||
firmware=$firmware.y
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue