3 # This script is called by cloud-init on worker nodes
4 # What does this script do:
5 # 1. Copy qat driver tarball and sriov tarball from share folder
6 # 2. Extract the tarball and run install.sh to install the drivers
8 # Need a variable named $SHARE_FOLDER to indicate the share folder location
10 MODULES_LIST="qat_driver sriov_driver"
12 SHARE_FOLDER=${SHARE_FOLDER:-"package"}
14 for module in $MODULES_LIST; do
15 filename=$module-$VER.tar.gz
16 if [ ! -e $filename ]; then
17 if [ ! -e $SHARE_FOLDER/$filename ]; then
18 echo "Cannot install module $module ..."
21 cp $SHARE_FOLDER/$filename .
26 if [ -d $module ]; then
27 echo "Installing module $module ..."