#!/bin/rc aux/acpi -m /mnt/acpi while () { pcent=`{awk '{ if(NR==2) print ""$1""}' /mnt/acpi/battery} echo $pcent 100 sleep 5 }