X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=004754a66b094b8698c08685c7cb868724017c9c;hp=0b562b0bb09a4bc4b850197ba732d63bf1560f9a;hb=cc1a5bf0075ffe967e14feb21ec30c86b4b0f415;hpb=5a937b7859b9e215b00e22e3ba24d41b796acf78 diff --git a/autoconfig.functions b/autoconfig.functions index 0b562b0..004754a 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: Mit Jän 24 10:33:23 CET 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -358,6 +358,18 @@ config_time(){ config_kernel(){ vmware-detect &>/dev/null && VMWARE="inside ${WHITE}VMWare${NORMAL}" 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 } # }}}