Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposed new /etc/rc.d/drvctl script



On Wed, Apr 09, 2025 at 10:01:01AM -0700, Paul Goyette wrote:
> On Wed, 9 Apr 2025, Paul Goyette wrote:
> >>This isn't even necessary.  You can just as well add the necessary drvctl
> >>commands to $start_precmd in /etc/rc.conf.d/modules.
> >
> >Hmmm, hadn't thought of that.  I will investigate.
> 
> Thanks this works fine with the precmd defined in rc.d/modules.  Now I
> just gotta figure out the syntax for putting it in the rc.conf file.

As I said, you put the definition in /etc/rc.conf.d/modules, creating that
file.

echo '$start_precmd="$start_precmd; drvctl -d pchb0' >> /etc/rc.conf.d/modules

Off the top of my head and from memory.  Batteries not included. :-)
--chris


Home | Main Index | Thread Index | Old Index