Revision 7f6bd8e0 helper/common.sh
b/helper/common.sh | ||
---|---|---|
27 | 27 |
# those of the authors and should not be interpreted as representing official |
28 | 28 |
# policies, either expressed or implied, of GRNET S.A. |
29 | 29 |
|
30 |
OUTPUT=/dev/ttyS0 |
|
31 |
RESULT=/dev/ttyS2 |
|
30 |
RESULT=/dev/ttyS1 |
|
32 | 31 |
FLOPPY_DEV=/dev/fd0 |
33 | 32 |
|
34 | 33 |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin |
... | ... | |
40 | 39 |
CLEANUP=( ) |
41 | 40 |
|
42 | 41 |
log_error() { |
43 |
echo "$@" >&2
|
|
42 |
echo "ERROR: $@" | tee $RESULT >&2
|
|
44 | 43 |
exit 1 |
45 | 44 |
} |
46 | 45 |
|
... | ... | |
119 | 118 |
|
120 | 119 |
trap cleanup EXIT |
121 | 120 |
|
122 |
# Redirect stdout and stderr |
|
123 |
exec &> $OUTPUT |
|
124 |
|
|
125 | 121 |
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai : |
Also available in: Unified diff