加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
download-patches.sh 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化