Make localpkg print local scripts names when the boot is verbose

PR:		conf/68525
Approved by:	philip (mentor)
MFC after:	3 days
This commit is contained in:
matteo 2006-02-12 10:04:56 +00:00
parent 6c535f2f42
commit 609d51b24f

View File

@ -48,6 +48,9 @@ pkg_stop()
find_local_scripts_old
for script in `reverse_list ${slist} ${zlist}`; do
if [ -x "${script}" ]; then
if [ `sysctl -n debug.bootverbose` -eq 1 ]; then
echo "==>" ${script}
fi
(set -T
trap 'exit 1' 2
${script} stop)