I used to be able to get the battery percentage in 6.0/6.1 using,
Code:
battatm=$(sysctl -n hw.sensors.acpibat0.amphour3 | sed s/.A.*//)
battfull=$(sysctl -n hw.sensors.acpibat0.amphour0 | sed s/.A.*//)
load=`echo "${battatm} / ${battfull} * 100" | bc`
echo ${load}
but it isn't working on 6.2, & I noticed amphour seems to be watthour now, but even changing that didn't work, something appears to have changed(?).