diff options
author | mtm <mtm@FreeBSD.org> | 2008-01-25 15:06:26 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-01-25 15:06:26 +0000 |
commit | b46fecfe2999c869c28c8b5af7cc925e43709dd6 (patch) | |
tree | 116f5f6bc543f8fc3da7139c60bdefbec3e8591d /etc | |
parent | 1dcfe4a494542fa0fbcbea2ab0bb74b602d2ee23 (diff) | |
download | FreeBSD-src-b46fecfe2999c869c28c8b5af7cc925e43709dd6.zip FreeBSD-src-b46fecfe2999c869c28c8b5af7cc925e43709dd6.tar.gz |
If the rc.conf(5) variable for a script is not enabled do not fail
silently. Display a message that the command wasn't run and make
possible suggestions for what to do.
PR: conf/118770
MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.subr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index ba3e0a4..013f30b 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 |