Runscript: print deprecation warning for opts variable

Openrc uses the extra_commands and extra_started_commands variables to
list extra commands for services. Also, it supports the opts variable
which is used to assist migration from baselayout-1.

I am adding this warning to encourage switching from opts to
extra_commands/extra_started_commands.

I would like to remove support for opts eventually.
This commit is contained in:
William Hubbs 2011-07-26 12:19:59 -05:00
parent 863ef36011
commit df1f02ac84

View File

@ -206,6 +206,12 @@ for _f in $required_files; do
done
unset _f
if [ -n "$opts" ]; then
ewarn "Use of the opts variable is deprecated and will be"
ewarn "removed in the future."
ewarn "Please use extra_commands or extra_started_commands."
fi
while [ -n "$1" ]; do
# Sepcial case depend
if [ "$1" = depend ]; then