Mac OS X: 实用脚本程序(bash scripts)系列-6

清除所有SmartBoard程序

#!/bin/bash
#
# This script is removing SMART Board software on local machine.
# Reference: http://www2.smarttech.com/kbdoc/125841
#

echo "starting to remove SMART Board applications..."

RootDir=$1

# if volume is / then set to ""
if RootDir='/'; then
   RootDir=''
fi


sudo rm -rf ${RootDir}/Applications/Gallery/ Data/ Files
sudo rm -rf ${RootDir}/Applications/Gallery/ Setup
sudo rm -rf ${RootDir}/Applications/Notebook/ Software
sudo rm -rf ${RootDir}/Applications/SMART*
#sudo rm -rf ${RootDir}/Applications/SMART/ Board/ Software
#sudo rm -rf ${RootDir}/Applications/SMART/ Board Drivers
#sudo rm -rf ${RootDir}/Applications/SMART/ Essentials*
#sudo rm -rf ${RootDir}/Applications/SMART/ Technologies*
#sudo rm -rf ${RootDir}/Applications/SMART/ Product Update*

sudo rm -rf ${RootDir}/Library/Application/ Support/SMART*
sudo rm -rf ${RootDir}/Library/Receipts/SMART*
sudo rm -rf ${RootDir}/Library/Receipts/Notebook*

sudo rm -rf ${RootDir}/System/Library/Extensions/SMART*

for EachUser in `/bin/ls "${RootDir}/Users"`
do
      sudo rm -rf "${RootDir}/Users/${EachUser}/Library/Application Support"/SMART/ Technologies*
      sudo rm -rf "${RootDir}/Users/${EachUser}/Library/Preferences/"com.smarttech*
done

echo "Removing is done."


 

你可能感兴趣的:(Mac OS X: 实用脚本程序(bash scripts)系列-6)