From bd4e72743ca24c0c380c221a6bc7376da1911f7e Mon Sep 17 00:00:00 2001 From: dcc Date: Sat, 27 May 2023 21:45:28 -0700 Subject: first --- bashs/shell scrips/bat32 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bashs/shell scrips/bat32 (limited to 'bashs/shell scrips/bat32') diff --git a/bashs/shell scrips/bat32 b/bashs/shell scrips/bat32 new file mode 100755 index 0000000..382e207 --- /dev/null +++ b/bashs/shell scrips/bat32 @@ -0,0 +1,6 @@ +#!/bin/sh +touch /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/capacity > /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/status > /tmp/powerc +value=$(