etc-gentoo/hprofile/profiles/power/._cfg0000_ptest

18 lines
247 B
Plaintext
Raw Normal View History

#
# power/ptest
#
local state="$(echo /sys/class/power_supply/A*)"
if test -n "$state" -a -r "$state"; then
state=$(< "$state")
case "$state" in
(1) echo "adp";;
(0) echo "bat";;
esac
fi
#
# vim:fenc=utf-8:ft=sh:ci:pi:sts=0:sw=4:ts=4:
#