403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/wmbsdbatt/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/wmbsdbatt/files/patch-zz-temperature
--- wmbsdbatt.c.orig	2011-09-24 19:20:00.000000000 +0200
+++ wmbsdbatt.c	2011-09-24 19:20:23.000000000 +0200
@@ -79,7 +79,9 @@
 static char *sysctl_battery_state = "hw.acpi.battery.state";
 static char *sysctl_battery_life = "hw.acpi.battery.life";
 static char *sysctl_battery_time = "hw.acpi.battery.time";
-static char *sysctl_temperature = "hw.acpi.thermal.tz0.temperature";
+static char *sysctl_temperature;
+static char *sysctl_temperature_acpi = "hw.acpi.thermal.tz0.temperature";
+static char *sysctl_temperature_cpu0 = "dev.cpu.0.temperature";
 static char *sysctl_acline = "hw.acpi.acline";
 static char *sysctl_frequency = "dev.cpu.0.freq";
 
@@ -148,11 +150,17 @@
 
 	sa.sa_handler = SIG_IGN;
 	sa.sa_flags = SA_NOCLDWAIT;
-	while ((ch = getopt(argc, argv, "bh")) != -1) {
+
+	sysctl_temperature = sysctl_temperature_acpi;
+
+	while ((ch = getopt(argc, argv, "bch")) != -1) {
 		switch (ch) {
 		case 'b':
 			backlight = LIGHTON;
 			break;
+		case 'c':
+			sysctl_temperature = sysctl_temperature_cpu0;
+			break;
 		case 'h':
 			usage();
 			break;

Youez - 2016 - github.com/yon3zu
LinuXploit