Fix displaying information about virtual environment
authorMichael Prokop <mika@grml.org>
Wed, 9 Jan 2013 14:50:21 +0000 (15:50 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 9 Jan 2013 14:50:21 +0000 (15:50 +0100)
This was non-sense.

autoconfig.functions

index 0e962c5..6a78f93 100755 (executable)
@@ -500,10 +500,10 @@ config_time(){
 
 # {{{ 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
+  else
+    einfo "Running Linux Kernel $KERNEL" ; eend 0
   fi
 
   if [ -r /proc/cpuinfo ] ; then