diff options
author | DJ Lucas <dj@linuxfromscratch.org> | 2010-06-27 07:33:25 +0000 |
---|---|---|
committer | DJ Lucas <dj@linuxfromscratch.org> | 2010-06-27 07:33:25 +0000 |
commit | 559731897ec9f68b90744433e4f68402c2ce31d2 (patch) | |
tree | d2905e5533738cca5cfbca6df2252699aaef2785 /bootscripts/contrib/lsb-v3/init.d/lfs-functions | |
parent | c8595ed6458eee262e330e2a2554f0e3fab51648 (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/init.d/lfs-functions')
-rw-r--r-- | bootscripts/contrib/lsb-v3/init.d/lfs-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/lfs-functions b/bootscripts/contrib/lsb-v3/init.d/lfs-functions index afcd05de8..b0fef4c29 100644 --- a/bootscripts/contrib/lsb-v3/init.d/lfs-functions +++ b/bootscripts/contrib/lsb-v3/init.d/lfs-functions @@ -77,7 +77,7 @@ statusproc() pidlist=`pidofproc "${BIN_FILE}"` STATUS=$? echo "Checking ${MESSAGE} status:" - if [ "${STATUS}" = "0" ]; then + if [ "${STATUS}" -eq "0" ]; then log_success_msg "Running with PID(s) ${pidlist}" else log_warning_msg "Not running!" @@ -202,7 +202,7 @@ evaluate_retval() # Print messages for the generic force-reload, reload, restart, # and try-restart targets - if [ "${error_value}" = "0" ] + if [ "${error_value}" -eq "0" ] then log_success_msg "${message}${MESSAGE} " return "${error_value}" |