aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/lsb/init-functions
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2010-06-27 07:33:25 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2010-06-27 07:33:25 +0000
commit559731897ec9f68b90744433e4f68402c2ce31d2 (patch)
treed2905e5533738cca5cfbca6df2252699aaef2785 /bootscripts/contrib/lsb-v3/lsb/init-functions
parentc8595ed6458eee262e330e2a2554f0e3fab51648 (diff)
Standardized urinary comparisons^Cn tests
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9324 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts/contrib/lsb-v3/lsb/init-functions')
-rw-r--r--bootscripts/contrib/lsb-v3/lsb/init-functions10
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