Date: Wed, 9 Apr 2025 10:01:01 -0700 (PDT) From: Paul Goyette <p...@whooppee.com> Message-ID: <pine.neb.4.64.2504090958500.20...@speedy.whooppee.com>
| 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. There's no syntax for that. pre (and post) commands aren't designed for user config, they're for the scripts to use to do something which is needed to be done, usually so that the rc system's default start command can then be used (eg: rc.d/yppasswd uses it to check the YP (NIS) domainname is set, and has no specific start command function, other scripts use it to migrate old configs to new, or set up chroot environments). It isn't intended to be user configurable at all. Using it for this is no better (and no reason in this case to do it that way) that just modifying the rc.d/modules start command to include a drvctl line before the loop reading its config file. Either way (adding a precmd or just modifying the start command) is truly a gross hack, not nearly as clean as the rc.d/drvctl script idea. kre