in case a target does not use overlayfs
@@ -1,5 +0,0 @@
-local fs = require "nixio.fs"
-local opkg = require "luci.model.ipkg"
-
-local st = fs.statvfs(opkg.overlay_root())
-return 1 - st.bfree / st.blocks
@@ -0,0 +1,4 @@
+local fs = require "nixio.fs"
+
+local st = fs.statvfs("/")
+return 1 - st.bfree / st.blocks