Describe the rest of the bins

This commit is contained in:
David Heinemeier Hansson
2026-02-07 10:50:48 +01:00
parent ea24b0dc68
commit 9741b29a7c
13 changed files with 34 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/bash
# Returns true if a battery is present on the system.
# Used by the battery monitor and other battery-related checks.
for bat in /sys/class/power_supply/BAT*; do
[[ -r "$bat/present" ]] &&
[[ "$(cat "$bat/present")" == "1" ]] &&