diff options
author | William Hubbs <williamh@gentoo.org> | 2011-07-26 12:19:59 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-07-26 12:19:59 -0500 |
commit | df1f02ac848a010092df2d3d40b8828051522b4b (patch) | |
tree | e9f70164004af1a7f8783e89da6575123edd0b13 /sh | |
parent | 863ef36011144a8907359bddc3fe705e5185fd1b (diff) |
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.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/runscript.sh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index a3f387eb..df34b5e5 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -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 |