Changeset 4843 in /cluster/svnroot


Ignore:
Timestamp:
Aug 9, 2014 8:58:04 PM (6 years ago)
Author:
skylar
Message:

support libdebug option (#870)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.3.2/packages/etc/init.d/bccd-liberate

    r4592 r4843  
    4040    LIBDEV=$(egrep -o '[[:space:]]libdev=.*' /proc/cmdline |cut -d= -f2)
    4141   
     42    LIBOPTIONS="--libdev=${LIBDEV} --force"
     43
     44    if egrep -q '[[:space:]]libdebug' /proc/cmdline; then
     45        LIBOPTIONS+=" --debug"
     46    fi
     47   
    4248    if [[ -n ${LIBDEV} ]]; then
    4349        log_action_begin_msg "Starting liberation to ${LIBDEV}"
    44         if perl /root/liberate.pl --libdev=${LIBDEV} --force; then
     50        if perl /root/liberate.pl ${LIBOPTIONS}; then
    4551            log_action_end_msg 0 "Liberation to ${LIBDEV} complete"
    4652        else
    47             log_failure_msg "Failed to liberate to ${LIBDEV}, continuing boot"
     53            log_failure_msg "Failed to liberate to ${LIBDEV}, continuing boot after sleeping"
     54            sleep 30
    4855            exit 2
    4956        fi
Note: See TracChangeset for help on using the changeset viewer.