Merge pull request #2207 from blocktrron/web-admin-flashsize
web-admin: fix firmware partition name
This commit is contained in:
commit
069c8b2035
@ -72,7 +72,7 @@ local function action_upgrade(http, renderer)
|
|||||||
if unistd.access("/proc/mtd") then
|
if unistd.access("/proc/mtd") then
|
||||||
for l in io.lines("/proc/mtd") do
|
for l in io.lines("/proc/mtd") do
|
||||||
local s, n = l:match('^[^%s]+%s+([^%s]+)%s+[^%s]+%s+"([^%s]+)"')
|
local s, n = l:match('^[^%s]+%s+([^%s]+)%s+[^%s]+%s+"([^%s]+)"')
|
||||||
if n == "linux" then
|
if n == "firmware" then
|
||||||
size = tonumber(s, 16)
|
size = tonumber(s, 16)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user