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