X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=5e0c39e498a642fd259149f7eaf8ba0e8d14d00b;hp=0b562b0bb09a4bc4b850197ba732d63bf1560f9a;hb=a8499da7a5d9d61c0c818c567f90e4782d8bc2dd;hpb=5a937b7859b9e215b00e22e3ba24d41b796acf78 diff --git a/autoconfig.functions b/autoconfig.functions index 0b562b0..5e0c39e 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Nov 27 21:02:23 CET 2006 [mika] +# Latest change: Mon Feb 05 12:37:33 CET 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -357,7 +357,20 @@ config_time(){ # {{{ print kernel info config_kernel(){ vmware-detect &>/dev/null && VMWARE="inside ${WHITE}VMWare${NORMAL}" + [ -d /proc/xen ] && VMWARE='' # vmware-detect returns '0' when running with a Xen-enabled kernel einfo "Running Linux Kernel $KERNEL $VMWARE" ; eend 0 + if [ -r /proc/cpuinfo ] ; then + if egrep -q '^flags.*(vmx|svm)' /proc/cpuinfo ; then + eindent + einfo 'CPU(s) featuring virtualization technology detected' ; eend 0 + eoutdent + fi + fi + if [ -d /proc/xen ] ; then + eindent + einfo 'Running kernel featuring support for Xen detected' ; eend 0 + eoutdent + fi } # }}}