ionice may not be available

This commit is contained in:
Vincent Riquer 2015-03-10 10:24:33 +01:00
parent 3fd7a11bed
commit 6510eb17fc

View File

@ -24,6 +24,8 @@ getConfigGeneral() {
unset expr
;;
'ionice')
if which ionice >/dev/null
then
read class niceness <<<"$value"
case $class in
1)
@ -65,6 +67,7 @@ getConfigGeneral() {
exit $EIONICE
;;
esac
fi
;;
'temporary-directory')
tempdir="$value"