The most logical guess seems to be
at home:
0 (AC Power)
in car:
1 (DC Power)

If this is the case, then all you have to do is extract the "head" and "cut" commands from the debian image and do this:

if [ `head -1 /proc/empeg_power | cut -c 1` -eq "0" ];
then
# do AC power stuff
; else
# do DC power stuff
fi



---
MkII 080000554
_________________________
- Tony C
my empeg stuff