Run e4rat scripts only if the package is installed.
This commit is contained in:
parent
8e2bb4c5e2
commit
4176622975
|
@ -595,8 +595,10 @@ let STAGE_CNT++
|
||||||
# Enabling e4rat data collection
|
# Enabling e4rat data collection
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
echo "======= STAGE $STAGE: Enabling e4rat data collection ======="
|
echo "======= STAGE $STAGE: Enabling e4rat data collection ======="
|
||||||
e4rat_switch.sh collect
|
if [ `which e4rat-collect 2>/dev/null` ]; then
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: Enabling e4rat data collection failed ;-( =======" && exit $STAGE
|
e4rat_switch.sh collect
|
||||||
|
[ 0 -ne $? ] && echo "Stage $STAGE: Enabling e4rat data collection failed ;-( =======" && exit $STAGE
|
||||||
|
fi
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue