-
# Every time I reboot and run VMWare, I have to manually run vmware-config.pl to create again vmnet devices (/dev/vmnetX)
-
# This scrit fix this problem. Add it to the init.d directory and run it on startup (rcX.d)
-
-
vim /etc/init.d/mkvmnet
-
#! /bin/sh -e
-
#Create device nodes for vmnet
-
sync
-
`/bin/mknod —mode=600 /dev/vmnet0 c 119 0`
-
`/bin/mknod —mode=600 /dev/vmnet1 c 119 1`
-
`/bin/mknod —mode=600 /dev/vmnet2 c 119 2`
-
`/bin/mknod —mode=600 /dev/vmnet3 c 119 3`
-
`/bin/mknod —mode=600 /dev/vmnet4 c 119 4`
-
`/bin/mknod —mode=600 /dev/vmnet5 c 119 5`
-
`/bin/mknod —mode=600 /dev/vmnet6 c 119 6`
-
`/bin/mknod —mode=600 /dev/vmnet7 c 119 7`
-
`/bin/mknod —mode=600 /dev/vmnet8 c 119 8`
-
`/bin/mknod —mode=600 /dev/vmnet9 c 119 9`
-
sync
-
exit 0
-
-
# To execute the script on startup
-
cp -s /etc/init.d/mkvmnet /etc/rc3.d/S02mkvmnet
-
chmod 755 /etc/init.d/mkvmnet