On Thu, 10 Apr 2025, Iain Hibbert wrote:
modules is a shell script and you have extranous $ and missing " as the
precmd is a command
#!/bin/sh
start_precmd="modules_prestart"
modules_prestart()
{
drvctl -d pchb0
}
would probably do it.. I don't know that you need to care about a
pre-existing start_precmd?
Works without the #! line since this script is sourced.
Thanks.
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | p...@whooppee.com |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoye...@netbsd.org |
| & Network Engineer | | pgoyett...@gmail.com |
+---------------------+--------------------------+----------------------+