X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=compile%2Fvmware-detect.c;h=c99e36ff05e67911839177a562088a1b47ad8d3f;hb=12b3ac5b42b404e8f6b4d70fb9530b82213118f4;hp=0269b902603cc02b1f705b146922dd58480b4cb6;hpb=d6b26ce3b8ffa721052bfb0eebc546ac9a63e5f9;p=grml-scripts.git diff --git a/compile/vmware-detect.c b/compile/vmware-detect.c index 0269b90..c99e36f 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" @@ -121,7 +129,7 @@ int main(int argc, char* argv[]) { return EXIT_SUCCESS; } else { if(!Killed) { - // check unuseable or not implemented + // check unusable or not implemented DWRITE("false\n"); DWRITE("Check not implemented, yet!\n"); return a ? EXIT_SUCCESS : EXIT_FAILURE;