skip to main content
卸载Cloud Agent 云代理 (HFS+)
要通过控制台卸载 Cloud Agent 云代理,请转至"计算机"页,选择至少一台计算机,然后单击"维护">"卸载 Cloud Agent 云代理"。
要在 Mac 上卸载Cloud Agent 云代理,请使用以下脚本创建文件,并将其作为 sudo <filename> 运行:
 
#!/bin/sh
 
# Should be root to run this script
if [ "$EUID" != "0" ]; then
echo "Error: script must be run as root (use sudo)." 1>&2
exit 1
fi
 
# if the user didn't give a volume assume the boot (i.e. root) volume
if [ "$1" = "" ]; then
MCAVOLUME="/"
else
if [ -d "/Volumes/${1}" ]; then
MCAVOLUME="/Volumes/${1}"
else
MCAVOLUME="${1}"
fi
fi
 
if [ -d "${MCAVOLUME}" ]; then
echo "Uninstalling Cloud Agent from \"${MCAVOLUME}\"."
# remove Launchd plists for the daemons
rm -rf "${MCAVOLUME}/Library/LaunchDaemons/com.faronics.cloudagentd.plist"
# remove the actual daemons
rm -rf "${MCAVOLUME}/Library/PrivilegedHelperTools/com.faronics.cloudagentd"
 
# remove bundle file for localization
rm -rf "${MCAVOLUME}/Library/Application Support/Faronics/CloudAgent/CloudAgent.bundle"
 
# remove the receipt
# 10.6 or higher remove the receipt data from the database
pkgutil --forget "com.faronics.pkg.CloudAgent" --volume "${MCAVOLUME}"
# remove preferences
rm -rf "${MCAVOLUME}/Library/Preferences/com.faronics.cloudagent.plist"
echo "Uninstall Cloud Agent complete."
else
echo "Could not find volume \"${MCAVOLUME}\"."
fi