Skip to content
Snippets Groups Projects
Commit fea00b36 authored by ohrensessel's avatar ohrensessel
Browse files

calculate rootfs usage instead of overlayfs

in case a target does not use overlayfs
parent 4d747c09
No related branches found
No related tags found
No related merge requests found
local fs = require "nixio.fs"
local opkg = require "luci.model.ipkg"
local st = fs.statvfs(opkg.overlay_root())
local st = fs.statvfs("/")
return 1 - st.bfree / st.blocks
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