From df1f02ac848a010092df2d3d40b8828051522b4b Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 26 Jul 2011 12:19:59 -0500 Subject: 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. --- sh/runscript.sh.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sh') 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 -- cgit v1.2.3