]> git.pld-linux.org Git - packages/VMware-workstation.git/commitdiff
- create missing vmnet devices on udev
authoraflinta <aflinta@pld-linux.org>
Mon, 4 Apr 2005 22:12:30 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    VMware-workstation.init -> 1.18

VMware-workstation.init

index 7d2e7f1d33343f8ade9bd6729324be7cdb64b0e2..c000a6c22522f475c99c12cd2aed9e584c759e41 100755 (executable)
@@ -41,6 +41,16 @@ done
 # System wide functions
 . /etc/rc.d/init.d/functions
 
+# Create /dev/vmnetXX device
+vmware_create_vmnet() {
+    local vHubNr="$1" # IN
+    local vDevice="/dev/vmnet$vHubNr"
+
+    if [ ! -e "$vDevice" ]; then
+       mknod -m 600 "$vDevice" c 119 "$vHubNr"
+    fi
+}
+                 
 #
 # Create a temporary directory
 #
@@ -301,6 +311,7 @@ case "$1" in
                        eval 'hostaddr="$VNET_'"$vHubNr"'_HOSTONLY_HOSTADDR"'
                        eval 'netmask="$VNET_'"$vHubNr"'_HOSTONLY_NETMASK"'
                        if [ -n "$interface" ]; then
+                               vmware_create_vmnet "$vHubNr"
                                # Connect a physical host ethernet interface to a virtual ethernet hub
                                msg_starting 'Bridged networking on /dev/vmnet'"$vHubNr"
                                busy
@@ -308,6 +319,7 @@ case "$1" in
                                  -d /var/run/"$bridge"-"$vHubNr".pid /dev/vmnet"$vHubNr" "$interface"
                                [ "$?" -eq 0 ] && ok || fail
                        elif [ -n "$hostaddr" -a -n "$netmask" ]; then
+                               vmware_create_vmnet "$vHubNr"
                                eval 'samba="$VNET_'"$vHubNr"'_SAMBA"'
                                msg_starting 'Host-only networking on /dev/vmnet'"$vHubNr"
                                busy
This page took 0.055133 seconds and 4 git commands to generate.