aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/vmware2/scripts
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-04-15 18:20:18 +0800
committerflz <flz@FreeBSD.org>2005-04-15 18:20:18 +0800
commit42dc60fcd8205bd45acf122df584fa002838047a (patch)
treedb1e1498976b670934f7a5e39af61d394bc860c3 /emulators/vmware2/scripts
parent5c4be27ccf5d4134e28e061d43a4b0c115b7587b (diff)
downloadfreebsd-ports-graphics-42dc60fcd8205bd45acf122df584fa002838047a.tar.gz
freebsd-ports-graphics-42dc60fcd8205bd45acf122df584fa002838047a.tar.zst
freebsd-ports-graphics-42dc60fcd8205bd45acf122df584fa002838047a.zip
- Should fix compilation and vmmon in latest 5.x.
PR: ports/68202 Submitted by: Marc van Kempen <marc@bowtie.nl> Approved by: maintainer
Diffstat (limited to 'emulators/vmware2/scripts')
-rw-r--r--emulators/vmware2/scripts/pre-install7
1 files changed, 5 insertions, 2 deletions
diff --git a/emulators/vmware2/scripts/pre-install b/emulators/vmware2/scripts/pre-install
index 29261ccebb9..9539dabbd9b 100644
--- a/emulators/vmware2/scripts/pre-install
+++ b/emulators/vmware2/scripts/pre-install
@@ -17,8 +17,11 @@ ln -s /dev/ttyvb ${linux_dev}/tty12
ln -s ${linux_dev}/tty1 ${linux_dev}/tty0
mknod ${linux_dev}/null c 2 2
chmod 666 ${linux_dev}/null
-echo Creating vmnet1 node
-mknod /compat/linux/dev/vmnet1 c 149 ${VMNET1_MINOR}
+rm -f /compat/linux/dev/vmnet1
+if [ "$OSVERSION" -lt "500104" ]; then
+ echo Creating vmnet1 node
+ mknod /compat/linux/dev/vmnet1 c 149 ${VMNET1_MINOR}
+fi
echo Creating $linux_dev/hd\?
mknod ${linux_dev}/hda b 0 0x00010002
mknod ${linux_dev}/hdb b 0 0x0001000a