[Openvas-commits] r11699 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 27 09:51:07 CEST 2011


Author: hdoreau
Date: 2011-09-27 09:50:59 +0200 (Tue, 27 Sep 2011)
New Revision: 11699

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/gather-hardware-info.nasl
Log:
* scripts/gather-hardware-info.nasl: Enable script by default.


Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-09-27 07:48:53 UTC (rev 11698)
+++ trunk/openvas-plugins/ChangeLog	2011-09-27 07:50:59 UTC (rev 11699)
@@ -1,5 +1,9 @@
 2011-09-27  Henri Doreau <henri.doreau at greenbone.net>
 
+	* scripts/gather-hardware-info.nasl: Enable script by default.
+
+2011-09-27  Henri Doreau <henri.doreau at greenbone.net>
+
 	* scripts/gather-hardware-info.nasl: Fixed an incorrect isnull() check
 	(function returns 0 not NULL). Use script-wide constants for the
 	registration of host details.

Modified: trunk/openvas-plugins/scripts/gather-hardware-info.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gather-hardware-info.nasl	2011-09-27 07:48:53 UTC (rev 11698)
+++ trunk/openvas-plugins/scripts/gather-hardware-info.nasl	2011-09-27 07:50:59 UTC (rev 11699)
@@ -46,7 +46,6 @@
  script_family("General");
  script_dependencies("gather-package-list.nasl", "find_service.nasl", "ssh_authorization.nasl");
 
- script_add_preference(name:"gather hardware information", type:"checkbox", value:"no");
  exit(0);
 }
 
@@ -67,11 +66,6 @@
     register_host_detail(name:"hostname", value:hostname, nvt:NVT_OID, desc:NVT_DESC);
 }
 
-run_script= script_get_preference("gather hardware information");
-if (isnull(run_script) || "no" >< run_script) {
-    exit(0);
-}
-
 if (host_runs("linux") == "no") {
     exit(0);
 }



More information about the Openvas-commits mailing list