Skip to content
Snippets Groups Projects
Unverified Commit 069c8b20 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #2207 from blocktrron/web-admin-flashsize

web-admin: fix firmware partition name
parents 4cd644a7 d0551c2d
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ local function action_upgrade(http, renderer)
if unistd.access("/proc/mtd") then
for l in io.lines("/proc/mtd") do
local s, n = l:match('^[^%s]+%s+([^%s]+)%s+[^%s]+%s+"([^%s]+)"')
if n == "linux" then
if n == "firmware" then
size = tonumber(s, 16)
break
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment