test.sh: fix fake acpi for -t

This commit is contained in:
Olivier Mengué 2014-06-30 09:25:00 +02:00
parent 95d69efe87
commit 943144cd12

View File

@ -108,7 +108,13 @@ nproc()
acpi()
{
echo "fake acpi $@" 1>&2
echo 'Battery 0: Discharging, 55%, 01:39:34 remaining'
if [[ "x$1" == --battery ]]; then
echo 'Battery 0: Discharging, 55%, 01:39:34 remaining'
elif [[ "x$1" == -t ]]; then
echo 'Thermal 0: ok, 36.0 degrees C'
else
return 1
fi
}