shithub: riscv

Download patch

ref: 55e5418e6945ec3275d34e04047ad706f6eb8e68
parent: d83a200295b2364c5e5da82730504d3b9cb7d85b
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Aug 8 09:12:45 EDT 2022

acpi: /mnt/acpi → /mnt/pm

--- a/sys/man/8/acpi
+++ b/sys/man/8/acpi
@@ -19,7 +19,7 @@
 presents at
 .I mountpoint
 (default
-.BR /mnt/acpi )
+.BR /mnt/pm )
 an interface to the ACPI. If a
 .I service
 is specified, the interface will be
--- a/sys/src/cmd/aux/acpi.c
+++ b/sys/src/cmd/aux/acpi.c
@@ -456,7 +456,7 @@
 static void
 usage(void)
 {
-	fprint(2, "usage: aux/acpi [-Dp] [-m /mnt/acpi] [-s service]\n");
+	fprint(2, "usage: aux/acpi [-Dp] [-m /mnt/pm] [-s service]\n");
 	exits("usage");
 }
 
@@ -481,7 +481,7 @@
 	Tbl *t;
 	int fd, n, l;
 
-	mtpt = "/mnt/acpi";
+	mtpt = "/mnt/pm";
 	srv = nil;
 	ARGBEGIN{
 	case 'D':
--- a/sys/src/cmd/stats.c
+++ b/sys/src/cmd/stats.c
@@ -622,7 +622,7 @@
 	snprint(buf, sizeof buf, "%s/mnt/apm/battery", mpt);
 	m->batteryfd = open(buf, OREAD);
 	if(m->batteryfd < 0){
-		snprint(buf, sizeof buf, "%s/mnt/acpi/battery", mpt);
+		snprint(buf, sizeof buf, "%s/mnt/pm/battery", mpt);
 		m->batteryfd = open(buf, OREAD);
 	}
 	m->bitsybatfd = -1;
@@ -640,7 +640,7 @@
 	m->tempfd = open(buf, OREAD);
 	if(m->tempfd < 0){
 		tempperiod = 5000;
-		snprint(buf, sizeof buf, "%s/mnt/acpi/cputemp", mpt);
+		snprint(buf, sizeof buf, "%s/mnt/pm/cputemp", mpt);
 		m->tempfd = open(buf, OREAD);
 	}
 	if(loadbuf(m, &m->tempfd))