Merge pull request #71 from yuyang0/bc

notify user to install bc
This commit is contained in:
logwang 2017-09-06 12:18:08 +08:00 committed by GitHub
commit 0fafa38d7e
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ do
esac
done
if ! type "bc" > /dev/null 2>&1; then
echo "please install bc"
exit
fi
allcmask0x=`cat ${conf}|grep lcore_mask|awk -F '=' '{print $2}'`
((allcmask=16#$allcmask0x))