summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-09-07 19:43:43 +0000
committerSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2022-09-07 19:43:43 +0000
commitff1f02c31615450c31163df752fcab74567ad322 (patch)
treeea5950faf43d15a5bc478493a6c27e51d6deac54 /sys
parent5a3aea0ca8fc8ec5529a5328e6f7879ad6d976da (diff)
aux/acpi: mount -a on /dev instead of /mnt/pm; ctl → pmctl
Diffstat (limited to 'sys')
-rw-r--r--sys/man/8/acpi6
-rw-r--r--sys/src/cmd/aux/acpi.c16
2 files changed, 11 insertions, 11 deletions
diff --git a/sys/man/8/acpi b/sys/man/8/acpi
index cb42a0c9e..57269cfad 100644
--- a/sys/man/8/acpi
+++ b/sys/man/8/acpi
@@ -19,7 +19,7 @@ acpi \- Advanced Configuration and Power Interface
presents at
.I mountpoint
(default
-.BR /mnt/pm )
+.BR /dev )
an interface to the ACPI. If a
.I service
is specified, the interface will be
@@ -48,9 +48,9 @@ or
.B cputemp
Each line provides a current temperature reading of a specific CPU.
.TP
-.B ctl
+.B pmctl
The
-.B ctl
+.B pmctl
file currently does not provide any functionality.
.SH SOURCE
.B /sys/src/cmd/aux/acpi.c
diff --git a/sys/src/cmd/aux/acpi.c b/sys/src/cmd/aux/acpi.c
index b2bfba502..c6d6f8e22 100644
--- a/sys/src/cmd/aux/acpi.c
+++ b/sys/src/cmd/aux/acpi.c
@@ -61,7 +61,7 @@ enum {
Qroot = 0,
Qbattery,
Qcputemp,
- Qctl,
+ Qpmctl,
Qdisable = (uvlong)-1,
};
@@ -80,10 +80,10 @@ Channel *creq, *cevent;
Req *rlist, **tailp;
Dfile dfile[] = {
- {{Qroot,0,QTDIR}, "/", DMDIR|0555, rootread, nil},
+ {{Qroot,0,QTDIR}, "/", DMDIR|0555, rootread, nil},
{{Qbattery}, "battery", 0444, batteryread, nil},
- {{Qcputemp}, "cputemp", 0444, tmpread, nil},
- {{Qctl}, "ctl", 0666, ctlread, ctlwrite},
+ {{Qcputemp}, "cputemp", 0444, tmpread, nil},
+ {{Qpmctl}, "pmctl", 0666, ctlread, ctlwrite},
};
static char*
@@ -382,7 +382,7 @@ fsopen(Req *r)
}
break;
- case Qctl:
+ case Qpmctl:
if((r->ifcall.mode & ~(OTRUNC|OREAD|OWRITE|ORDWR)) == 0){
respond(r, nil);
return;
@@ -456,7 +456,7 @@ fsattach(Req *r)
static void
usage(void)
{
- fprint(2, "usage: aux/acpi [-Dp] [-m /mnt/pm] [-s service]\n");
+ fprint(2, "usage: aux/acpi [-Dp] [-m mountpoint] [-s service]\n");
exits("usage");
}
@@ -481,7 +481,7 @@ threadmain(int argc, char **argv)
Tbl *t;
int fd, n, l;
- mtpt = "/mnt/pm";
+ mtpt = "/dev";
srv = nil;
ARGBEGIN{
case 'D':
@@ -549,7 +549,7 @@ threadmain(int argc, char **argv)
if(ntherms < 1)
dfile[Qcputemp].qid.path = Qdisable;
- threadpostmountsrv(&fs, srv, mtpt, MREPL);
+ threadpostmountsrv(&fs, srv, mtpt, MAFTER);
threadexits(nil);
fail: