Re: Command At Startup
On 2023-04-01, Computer Planet 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.
Re: Command At Startup
On Apr 01 11:26:31, 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 > -- There is no apm -C
Re: Command At Startup
On Sat, Apr 01, 2023 at 04:28:20PM +0200, Peter N. M. Hansteen wrote: > On Sat, Apr 01, 2023 at 11:26:31AM +0200, Computer Planet 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 Besides what Peter replied, are you sure the flag is right? $ man apm | grep -- "-C" $ > > -- > > I would think the place to put flags for apm or apmd would be the > to put a line in /etc/rc.conf.local with apmd_flags= and the flags you > want. > > - Peter > > > -- > Peter N. M. Hansteen, member of the first RFC 1149 implementation team > https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/ > "Remember to set the evil bit on all malicious network traffic" > delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds. >
Re: Command At Startup
On Sat, Apr 01, 2023 at 11:26:31AM +0200, Computer Planet 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 > -- I would think the place to put flags for apm or apmd would be the to put a line in /etc/rc.conf.local with apmd_flags= and the flags you want. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Command At Startup
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 -- Thanks for Reply.