History log of /freebsd/libexec/rc/hooks.sh (Results 1 – 2 of 2)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 203027b2 31-Dec-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update libexec/rc/debug.sh and hooks.sh

Use local_works() to test if 'local' actually works for
current shell.


Revision tags: release/14.2.0, release/13.4.0
# 7e1c014a 10-Sep-2024 Simon J. Gerraty <sjg@FreeBSD.org>

debug.sh take advantage of hooks.sh

Allow Debug{On,Off} to run associated hooks.
This makes it feasible to collect extra debug info at runtime
without needing to modify any potentially verified and

debug.sh take advantage of hooks.sh

Allow Debug{On,Off} to run associated hooks.
This makes it feasible to collect extra debug info at runtime
without needing to modify any potentially verified and hence immutable
scripts.

Like debug.sh, hooks.sh is extremely handy and used extensively
in many parts of Junos and its build environment.
It is provided here in the hope that others may benefit.

We do not dot hooks.sh by default to reduce overhead, but it can
but done from rc.conf et al using

$_HOOKS_SH . /libexec/hooks.sh

to avoid including more than once.

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D46552

show more ...