Changeset 5597318


Ignore:
Timestamp:
06/27/2010 07:33:25 AM (14 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
7956b88
Parents:
c8595ed
Message:

Standardized urinary comparisonsCn tests

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9324 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
bootscripts/contrib/lsb-v3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/contrib/lsb-v3/ChangeLog

    rc8595ed r5597318  
    22
    3320100627 - [dj] * Sync to LFS-Bootscripts-20100627 (killall in new sysvinit).
     4                * Standardized syntax for urinary comparisons in tests.
    45
    5620100529 - [matthew]
  • bootscripts/contrib/lsb-v3/init.d/checkfs

    rc8595ed r5597318  
    2626
    2727        mount -n -o remount,ro / >/dev/null
    28         if [ ${?} != 0 ]
     28        if [ ${?} -ne 0 ]
    2929        then
    3030            log_failure_msg "Mounting root file system in read-only mode"
     
    5454        error_value=${?}
    5555
    56         if [ "${error_value}" = 0 ]
     56        if [ "${error_value}" -eq 0 ]
    5757        then
    5858            log_success_msg "Checking file systems..."
    59         elif [ "${error_value}" = 1 ]
     59        elif [ "${error_value}" -eq 1 ]
    6060        then
    6161            log_warning_msg "Checking file systems..."
     
    6464            echo -e "${WARNING}corrected.  You may want to double-check that"
    6565            echo -e "${WARNING}everything was fixed properly.${NORMAL}"
    66         elif [ "${error_value}" = 2 -o "${error_value}" = 3 ]; then
     66        elif [ "${error_value}" -eq 2 -o "${error_value}" -eq 3 ]; then
    6767            log_warning_msg "Checking file systems..."
    6868            echo -e "${WARNING}WARNING:\n"
  • bootscripts/contrib/lsb-v3/init.d/lfs-functions

    rc8595ed r5597318  
    7878    STATUS=$?
    7979    echo "Checking ${MESSAGE} status:"
    80     if [ "${STATUS}" = "0" ]; then
     80    if [ "${STATUS}" -eq "0" ]; then
    8181        log_success_msg "Running with PID(s) ${pidlist}"
    8282    else
     
    203203    # Print messages for the generic force-reload, reload, restart,
    204204    # and try-restart targets
    205     if [ "${error_value}" = "0" ]
     205    if [ "${error_value}" -eq "0" ]
    206206    then
    207207        log_success_msg "${message}${MESSAGE} "
  • bootscripts/contrib/lsb-v3/init.d/localnet

    rc8595ed r5597318  
    2323        ip addr add 127.0.0.1/8 label lo dev lo
    2424        ip link set lo up
    25         if [ "${?}" = "0" ]
     25        if [ "${?}" -eq "0" ]
    2626                then
    2727                     log_success_msg "Bringing up the loopback interface..."
     
    3131
    3232        hostname "${HOSTNAME}"
    33         if [ "${?}" = "0" ]
     33        if [ "${?}" -eq "0" ]
    3434                then
    3535                     log_success_msg "Setting hostname to ${HOSTNAME}..."
     
    4242    stop)
    4343        ip link set lo down
    44         if [ "${?}" = "0" ]
     44        if [ "${?}" -eq "0" ]
    4545                then
    4646                     log_success_msg "Bringing down the loopback interface..."
     
    6161                hostname "${HOSTNAME}"
    6262                retval=$(( "${retval}" + "${?}" ))
    63                 if [ "${retval}" = "0" ]
     63                if [ "${retval}" -eq "0" ]
    6464                then
    6565                    log_success_msg "Restarting local network..."
  • bootscripts/contrib/lsb-v3/init.d/rc

    rc8595ed r5597318  
    120120        error_value=${?}
    121121
    122         if [ "${error_value}" != "0" ]; then
     122        if [ "${error_value}" -ne "0" ]; then
    123123            print_error_msg
    124124        fi
  • bootscripts/contrib/lsb-v3/init.d/sendsignals

    rc8595ed r5597318  
    2323        error_value=${?}
    2424        # Account for successful return value of 2
    25         if [ ${error_value} = 2 ]
    26             error_value="0"
     25        if [ ${error_value} -eq 2 ]
     26            error_value=0
    2727        fi
    2828        sleep 3
     
    3535        error_value=${?}
    3636        # Account for successful return value of 2
    37         if [ ${error_value} = 2 ]
    38             error_value="0"
     37        if [ ${error_value} -eq 2 ]
     38            error_value=0
    3939        fi
    4040
  • bootscripts/contrib/lsb-v3/init.d/udev

    rc8595ed r5597318  
    4141                        mount -n -t tmpfs tmpfs /dev -o mode=755
    4242                fi
    43                 if [ ${?} != 0 ]; then
     43                if [ ${?} -ne 0 ]; then
    4444                        echo_failure
    4545                        boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE}
  • bootscripts/contrib/lsb-v3/lsb/init-functions

    rc8595ed r5597318  
    202202    # Check for a valid signal
    203203    check_signal "${signal}"
    204     if [ "${?}" != "0" ]
     204    if [ "${?}" -ne "0" ]
    205205    then
    206206        return 2
     
    279279                    # Wait up to ${delay}/10 seconds to for "${pid}" to
    280280                    # terminate in 10ths of a second
    281                     while [ "${delay}" != "0" ]
     281                    while [ "${delay}" -ne "0" ]
    282282                    do
    283283                        kill -0 "${pid}" 2> /dev/null || piddead="1"
     
    414414    do
    415415        kill -0 ${pid} 2> /dev/null
    416         if [ "${?}" = "0" ]; then
     416        if [ "${?}" -eq "0" ]; then
    417417            lpids="${pids}${pid} "
    418418        else
     
    535535
    536536    echo "${valsig}" | grep -- " ${1} " > /dev/null
    537     if [ "${?}" = "0" ]
     537    if [ "${?}" -eq "0" ]
    538538    then
    539539        return 0
     
    567567
    568568    echo "${valsig}" | grep -- " ${1} " > /dev/null
    569     if [ "${?}" = "0" ]
     569    if [ "${?}" -eq "0" ]
    570570    then
    571571        return 0
Note: See TracChangeset for help on using the changeset viewer.