View | Details | Raw Unified | Return to bug 177217
Collapse All | Expand All

(-)etc/rc.d/ddb (-2 / +5 lines)
Lines 19-26 stop_cmd=":" Link Here
19
ddb_prestart()
19
ddb_prestart()
20
{
20
{
21
	# Silently exit if ddb is not enabled
21
	# Silently exit if ddb is not enabled
22
	if [ -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
22
	# NOTE: exit is needed here, not return, else rc.subr emits
23
		return 1
23
	# a "failed precmd routine" warning when ddb_enable="yes" is
24
	# used on a system which lacks DDB support in the kernel.
25
	if [ -z "`$SYSCTL_N -q debug.ddb.scripting.scripts`" ]; then
26
		exit 1
24
	fi
27
	fi
25
}
28
}

Return to bug 177217