#! /bin/sh # # for LongRun case "$1,$2" in change,power|suspend,*|resume,*|start,*) /usr/bin/apm | /bin/grep on-line > /dev/null 2>&1 case $? in 0) /usr/bin/longrun -s 100 100 /usr/bin/longrun -f performance /usr/bin/logger -t $0 Crusoe change to performance mode - reason \"$1,$2\" ;; *) /usr/bin/longrun -s 0 0 /usr/bin/longrun -f economy /usr/bin/logger -t $0 Crusoe change to economy mode - reason \"$1,$2\" ;; esac ;; esac