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:
parent
863ef36011
commit
df1f02ac84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user