summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware15/data/addon-required
blob: a86e41bcd35f289913943cb0fee2a02ae4984320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# the vmware helper needs the kmod msr and the tool rdmsr,
# /dev, /sys and /proc to properly detect the CPU info.

bindmount=("/dev" "/proc" "/sys")

for bm in "${bindmount[@]}"; do
	mount --bind "$bm" "${NEWROOT}/${bm}"
done

export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin"
version="$(chroot "$NEWROOT" vmware-get-supported-version)"

for bm in "${bindmount[@]}"; do
	umount "${NEWROOT}/${bm}"
done

[ -n "$version" ] && [ "$version" = "new" ]