aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index ba3e0a4e852e..013f30be3142 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -606,6 +606,9 @@ run_rc_command()
#
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" ]; then
if ! checkyesno ${rcvar}; then
+ echo -n "Cannot '${rc_arg}' $name. Set ${rcvar} to "
+ echo -n "YES in /etc/rc.conf or use 'one${rc_arg}' "
+ echo "instead of '${rc_arg}'."
return 0
fi
fi