notify user to install bc

dev
YuYang 2017-09-04 14:45:09 +08:00
parent 63fb3d1fbf
commit 06399ef331
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ do
esac esac
done 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}'` allcmask0x=`cat ${conf}|grep lcore_mask|awk -F '=' '{print $2}'`
((allcmask=16#$allcmask0x)) ((allcmask=16#$allcmask0x))