shithub: rc

ref: 7c063c346a361bca2e57e26e04e8fb48a05c8c7e
dir: /bin/bat/

View raw version
#!/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