Fix displaying information about virtual environment
[grml-autoconfig.git] / autoconfig.functions
index 0e962c5..6a78f93 100755 (executable)
@@ -500,10 +500,10 @@ config_time(){
 
 # {{{ print kernel info
 config_kernel(){
 
 # {{{ print kernel info
 config_kernel(){
-  if $VIRTUAL ; then
-    einfo "Running Linux Kernel $KERNEL $VMWARE" ; eend 0
-  else
+  if $VIRTUAL && [ -n "$VIRTUAL_ENV" ] ; then
     einfo "Running Linux Kernel $KERNEL inside $VIRTUAL_ENV" ; eend 0
     einfo "Running Linux Kernel $KERNEL inside $VIRTUAL_ENV" ; eend 0
+  else
+    einfo "Running Linux Kernel $KERNEL" ; eend 0
   fi
 
   if [ -r /proc/cpuinfo ] ; then
   fi
 
   if [ -r /proc/cpuinfo ] ; then