mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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
This commit is contained in:
parent
bb5081a7eb
commit
0908cccf90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175660
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user