Fixes: condition if whole directory /sys/class/power_supply is missing
Description
This PR extends the solution for issue #966. In my case, the path /sys/class/power_supply is missing completely other than having different variations of files below the BATx directory. To be fair, I only encountered this condition with an Ubuntu image provided by a hosting company, but I think, it's better to catch this issue in general.
Summary
/sys/class/power_supply
is missingDescription
This PR extends the solution for issue #966. In my case, the path
/sys/class/power_supply
is missing completely other than having different variations of files below theBATx
directory. To be fair, I only encountered this condition with an Ubuntu image provided by a hosting company, but I think, it's better to catch this issue in general.