diff options
Diffstat (limited to 'bootscripts/contrib/lsb-v3/lsb/init-functions')
-rw-r--r-- | bootscripts/contrib/lsb-v3/lsb/init-functions | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bootscripts/contrib/lsb-v3/lsb/init-functions b/bootscripts/contrib/lsb-v3/lsb/init-functions index b37eeb32f..d422a5b82 100644 --- a/bootscripts/contrib/lsb-v3/lsb/init-functions +++ b/bootscripts/contrib/lsb-v3/lsb/init-functions @@ -201,7 +201,7 @@ killproc() # Check for a valid signal check_signal "${signal}" - if [ "${?}" != "0" ] + if [ "${?}" -ne "0" ] then return 2 fi @@ -278,7 +278,7 @@ killproc() kill "${signal}" "${pid}" 2> /dev/null # Wait up to ${delay}/10 seconds to for "${pid}" to # terminate in 10ths of a second - while [ "${delay}" != "0" ] + while [ "${delay}" -ne "0" ] do kill -0 "${pid}" 2> /dev/null || piddead="1" if [ "${piddead}" = "1" ] @@ -413,7 +413,7 @@ local exitstatus="0" for pid in ${pidlist} do kill -0 ${pid} 2> /dev/null - if [ "${?}" = "0" ]; then + if [ "${?}" -eq "0" ]; then lpids="${pids}${pid} " else exitstatus="1" @@ -534,7 +534,7 @@ check_signal() valsig="${valsig} -11 -13 -14 -15" echo "${valsig}" | grep -- " ${1} " > /dev/null - if [ "${?}" = "0" ] + if [ "${?}" -eq "0" ] then return 0 else @@ -566,7 +566,7 @@ check_sig_type() valsig="-ALRM -INT -KILL -TERM -PWR -STOP -ABRT -QUIT -2 -3 -6 -9 -14 -15" echo "${valsig}" | grep -- " ${1} " > /dev/null - if [ "${?}" = "0" ] + if [ "${?}" -eq "0" ] then return 0 else |