ref: e0207cce6bc4ac7b8a9d4afbc9e7751e87dc34fe
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