git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20d71b3
)
+bin/psu
author
Jan Kratochvil
<lace@host1.jankratochvil.net>
Tue, 22 Aug 2023 13:00:00 +0000
(15:00 +0200)
committer
Jan Kratochvil
<lace@host1.jankratochvil.net>
Tue, 22 Aug 2023 13:00:00 +0000
(15:00 +0200)
bin/psu
[new file with mode: 0755]
patch
|
blob
diff --git a/bin/psu
b/bin/psu
new file mode 100755
(executable)
index 0000000..
f5dc004
--- /dev/null
+++ b/
bin/psu
@@ -0,0
+1,2
@@
+#! /bin/bash
+acpi|&grep -Eq 'Battery 0: Not charging|Battery 0: Charging|No support for device type: power_supply'