|
|
vmware_exec 'Virtual machine monitor' vmware_start_vmmon |
|
exitcode=$(($exitcode + $?)) |
|
|
|
if [ "`isPpuserNeeded`" = '1' ]; then |
|
vmware_exec 'Virtual bidirectional parallel port' vmware_start_vmppuser |
|
exitcode=$(($exitcode + $?)) |
|
else |
|
# Try to load parport_pc. Failure is allowed as it does not exist |
|
# on kernels 2.0 |
|
/sbin/modprobe parport_pc >/dev/null 2>&1 |
|
fi |
|
|
|
|
|
vmware_exec 'Virtual ethernet' vmware_start_vmnet |
|
exitcode=$(($exitcode + $?)) |
|
|
|
vmware_create_vmnet "$vHubNr" |
none=none |
vmware_exec 'Bridged networking on /dev/vmnet'"$vHubNr" \ |
|
vmware_start_bridge "$vHubNr" "$interface" |
|
exitcode=$(($exitcode + $?)) |
|
|
|
vmware_create_vmnet "$vHubNr" |
|
|
|
vmware_exec 'Virtual machine monitor' vmware_stop_vmmon |
|
exitcode=$(($exitcode + $?)) |
|
|
|
if [ "`isPpuserNeeded`" = '1' ]; then |
|
vmware_exec 'Virtual bidirectional parallel port' vmware_stop_vmppuser |
|
exitcode=$(($exitcode + $?)) |
|
else |
|
# Try to unload parport_pc. Failure is allowed as it does not exist |
|
# on kernels 2.0, and some other process could be using it. |
|
/sbin/modprobe -r parport_pc >/dev/null 2>&1 |
|
fi |
|
|
|
|
|
vmware_exec "Bridged networking on /dev/vmnet$vHubNr" \ |
none=none |
vmware_stop_bridge "$vHubNr" |
|
exitcode=$(($exitcode + $?)) |
|
|
|
|
|
eval 'nat="$vmdb_answer_VNET_'"$vHubNr"'_NAT"' |
|
if [ "$nat" = "yes" ]; then |
|
vmware_exec 'NAT service on /dev/vmnet'"$vHubNr" \ |
|
vmware_stop_nat "$vHubNr" |
|
exitcode=$(($exitcode + $?)) |
|
fi |
|
|
|
vmware_exec 'Host-only networking on /dev/vmnet'"$vHubNr" \ |
|
vmware_stop_hostonly 'vmnet'"$vHubNr" "$hostaddr" "$netmask" |
|
|
|
|
|
vmware_exec 'Virtual ethernet' vmware_stop_vmnet |
|
exitcode=$(($exitcode + $?)) |
|