ref: f3f162f18ce9f782b1675ba03e566d9cdffeff59
dir: /bin/bat/
#!/bin/rc
rfork ne
if(! test -f '#s'/acpi)
aux/acpi -s acpi || exit
mount '#s'/acpi /mnt/pm || exit
if(! test -f /mnt/pm/battery)
exit no battery to hand
awk '
{
print $1, $11, $12
}
' /mnt/pm/battery