runlevel=${1}
# If no runlevel was passed as an argument, we won't change runlevels.
-if [ "${runlevel}" = "" ]; then
+if [ "${runlevel}" == "" ]; then
echo "Usage: ${0} <runlevel>" >&2
exit ${EXIT_CODE_FAILURE}
fi
# If the service was not started in the previous level, or if we just
# stopped it in this runlevel, then we need to start or restart it.
check_script_status ${start_script}
- if [ ${?} = ${EXIT_CODE_SUCCESS} ]; then
+ if [ ${?} == ${EXIT_CODE_SUCCESS} ]; then
startup ${start_script} start
retval=${?}
if [ ${retval} -ne ${EXIT_CODE_SUCCESS} -a ${retval} -ne ${EXIT_CODE_WARNING} ]; then