From 3009f5ae54f3c77db0b2e9f31671da220287d31f Mon Sep 17 00:00:00 2001 From: BloodRagg <48292749+BloodRagg@users.noreply.github.com> Date: Fri, 3 May 2019 18:38:00 +0000 Subject: [PATCH] Kobo only mounts in /mnt/, set filter in case user uses some custom mount points (#4981) Normally only mmcblk* stuff (internal/external) will get mounted to /mnt/onboard or /mnt/sdcard, but it can sometimes be useful, see: https://github.com/koreader/koreader/pull/4981#issuecomment-487670972 --- plugins/systemstat.koplugin/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/systemstat.koplugin/main.lua b/plugins/systemstat.koplugin/main.lua index f1a3d5aa5..30b0dd305 100644 --- a/plugins/systemstat.koplugin/main.lua +++ b/plugins/systemstat.koplugin/main.lua @@ -16,8 +16,10 @@ local SystemStat = { } function SystemStat:init() - if Device:isCervantes() or Device:isKobo() or Device:isPocketBook() then + if Device:isCervantes() or Device:isPocketBook() then self.storage_filter = "mmcblk" + elseif Device:isKobo() then + self.storage_filter = " /mnt/" elseif Device:isKindle() then self.storage_filter = "' /mnt/us$'" elseif Device:isSDL() then