mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iup can now handle UBIFS and JFFS2 with same version and do a upgrade refs #8307
This commit is contained in:
parent
486b1a854c
commit
fdb3f55a35
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
!/bin/sh
|
||||
|
||||
. /lib/functions.sh
|
||||
. /usr/share/libubox/jshn.sh
|
||||
|
|
@ -272,6 +272,12 @@ if [ $software ]; 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
|
||||
firmware=$firmware.w
|
||||
else
|
||||
firmware=$firmware.y
|
||||
fi
|
||||
if [ "$sofwareminuspath" == "${sofwareminuspath/$firmware/}" ] ; then
|
||||
echo $software
|
||||
handle_provisioning uppgradeserver
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue