#!/bin/bash echo "Modify file for ubuntu ..." find -name "*.pc" | xargs sed -i 's|lib64|lib/x86_64-linux-gnu|g' # if using MSS version less than R6, please uncomment this. #sed -i 's|lib64|lib/x86_64-linux-gnu|g' etc/OpenCL/vendors/intel.icd echo "Remove old MSS install files ..." sudo rm -rf /opt/intel/mediasdk sudo rm -rf /opt/intel/common sudo rm -rf /opt/intel/opencl # remove old libdrm and libva find /usr -name "libdrm*" | xargs sudo rm -rf find /usr -name "libva*" | xargs sudo rm -rf echo "Install MSS files ..." sudo cp -rdf opt/* /opt/ sudo cp -rdf etc/* /etc/ sudo cp -rdf usr/bin/* /usr/bin/ sudo cp -rdf usr/include/* /usr/include/ sudo cp -rdf usr/lib64/* /usr/lib/x86_64-linux-gnu/ sudo cp -rdf usr/share/* /usr/share echo "Install finished, please reboot ..."