Verified Commit a8e42a32 authored by Erazem Kokot's avatar Erazem Kokot
Browse files

Drop acpi dependency

parent 16254615
acpi
dialog
git
networkmanager
......
......@@ -151,7 +151,7 @@ config() {
points_orig=$(echo -e "/boot boot-mountpoint>\n/home home-mountpoint>\n/opt opt-mountpoint>\n/srv srv-mountpoint>\n/usr usr-mountpoint>\n/var var-mountpoint>")
# Check for laptop
if (acpi | egrep "*" &>/dev/null); then
if [ -d /sys/class/power_supply/BAT0 ]; then
LAPTOP=true
fi
......
......@@ -50,7 +50,7 @@ dialog() {
if "${LAPTOP}"; then
# Show battery charge next to Anarchy heading
local backtitle
backtitle="${backtitle} $(acpi)"
backtitle="${backtitle} BAT: $(cat /sys/class/power_supply/BAT0/capacity)%"
fi
# op_title is the current menu title
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment