代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
# download selected vmware tools patch files
set -x
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
WGET="wget --no-check-certificate"
URLS="
vmblock,https://sites.google.com/site/mysticalzerotmp/vmblock.3.10.patch
vmblock,https://sites.google.com/site/mysticalzerotmp/vmblock.3.11.patch
vmblock,http://dominator008.com/crate/vmblock-3.12-patch
vmhgfs,https://raw.github.com/misheska/basebox-packer/master/template/misheska-ubuntu1204/floppy/vmtools.inode.c.patch
vmhgfs,https://raw.github.com/misheska/basebox-packer/master/template/misheska-ubuntu1204/floppy/vmware9.compat_mm.patch
vmci,https://raw.github.com/misheska/basebox-packer/master/template/misheska-ubuntu1204/floppy/vmware9.k3.8rc4.patch
"
pushd patches
for modurl in ${URLS}; do
mod="${modurl%%,*}"
url="${modurl#*,}"
pushd "${mod}"
file="$(basename ${url})"
if [[ -f "$file" ]]; then
continue
fi
${WGET} "${url}"
if [[ "${file}" = "vmware9.compat_mm.patch" ]]; then
sed -i.bak -e 's/\(vmware9.compat_mm.patch\)/shared\/\1/;' "${file}"
fi
popd
done
popd
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。