X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=compile%2Fvmware-detect.c;h=8afe2d1dd18c5a39096085b50989e62cf80a82ae;hb=f385c47b680aa903afbdce8ac8441dead20d9457;hp=7662a5a9983fb815891020551edf723ec93c164d;hpb=61261381f0fd824c577b0eb5ebf924e47c2d1659;p=grml-scripts.git diff --git a/compile/vmware-detect.c b/compile/vmware-detect.c index 7662a5a..8afe2d1 100644 --- a/compile/vmware-detect.c +++ b/compile/vmware-detect.c @@ -1,3 +1,11 @@ +/* Filename: vmware-detect.c +* Purpose: Detect if running inside vmware +* Authors: grml-team (grml.org), (c) Michael Gebetsroither +* Bug-Reports: see http://grml.org/bugs/ +* License: This file is licensed under the GPL v2. +*******************************************************************************/ +// return 0 if running inside vmware, 1 otherwise + #include "string.h" #include "unistd.h" #include "stdio.h" @@ -43,19 +51,23 @@ void printIdtr(const unsigned char* idtr, unsigned size) for(i=0; i