On 2023-04-01, Computer Planet <open...@cpnetserver.net> wrote: > Hi Guys, OpenBSD 7.2 > I have no way to get a stupid autorun script to load. Can anyone tell me > where to put this script? > In /etc/rc.local it doesn't work... > The scirtp is located in the path /home/tech > and contains only this: > ------------------------------ > #!/bin/ksh > /usr/sbin/apm -C
The power mode that used to be triggered by apm -C can no longer be done without patching the kernel (change "if (hw_power)" around line 535 in sched_bsd.c to "if (0 && hw_power)" or similar). Otherwise there is a package "obsdfreqd" which provides a daemon that can do some sort-of similar things in userland.