I resolved it and i post it for anyone who might have a similar problem to resolve.
if [ $myKernelVersion = "2.6.4-52-default" ]; then
echo OK - starting sevice...
#start vmware script
I also found where to insert this piece of code in order to make it work. The vmware GSX server has a script file in /etc/init.d/ called vmware. You can use this script to start/stop/restart the vmware service by issuing the commands:
It is here (in my case @ line #813) that I inserted my code in order to start up the service only with the working kernel...here it goes:
# See how we were called.
case "$1" in
#checking KERNEL VERSION -> ALLOW STARTUP ONLY FOR: "2.6.4-52-default"
if [ $myKernelVersion != "2.6.4-52-default" ]; then
echo JACK PROHIBITED TO RUN VMWARE SERVICE ON KERNEL: $myKernelVersion
echo STARTING TO RUN VMWARE SERVICE ON KERNEL: $myKernelVersion
#checking finished - the rest remains untouched
I don't know if this is the best way of doing it but I tested this and for me it works fine!
ciao a tutti!