Changeset 53ea84b for bootscripts/lfs


Ignore:
Timestamp:
01/24/2013 09:45:18 PM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 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:
49f236b
Parents:
dd5d867
Message:

Remove bashisms from init-functions file in the boot scripts.
Upgrade to e2fsprogs-1.42.7.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/lib/services/init-functions

    rdd5d867 r53ea84b  
    523523
    524524   if [ -n "${pidlist}" ]; then
    525       echo -e "${INFO}${base} is running with Process" \
     525      /bin/echo -e "${INFO}${base} is running with Process" \
    526526         "ID(s) ${pidlist}.${NORMAL}"
    527527   else
    528528      if [ -n "${base}" -a -e "/var/run/${base}.pid" ]; then
    529          echo -e "${WARNING}${1} is not running but" \
     529         /bin/echo -e "${WARNING}${1} is not running but" \
    530530            "/var/run/${base}.pid exists.${NORMAL}"
    531531      else
    532532         if [ -n "${pidfile}" -a -e "${pidfile}" ]; then
    533             echo -e "${WARNING}${1} is not running" \
     533            /bin/echo -e "${WARNING}${1} is not running" \
    534534               "but ${pidfile} exists.${NORMAL}"
    535535         else
    536             echo -e "${INFO}${1} is not running.${NORMAL}"
     536            /bin/echo -e "${INFO}${1} is not running.${NORMAL}"
    537537         fi
    538538      fi
     
    567567log_success_msg()
    568568{
    569     echo -n -e "${BMPREFIX}${@}"
    570     echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
     569    /bin/echo -n -e "${BMPREFIX}${@}"
     570    /bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
    571571
    572572    # Strip non-printable characters from log file
    573     local logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
     573    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    574574
    575575    timespec
    576     echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}
     576    /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}
    577577   
    578578    return 0
     
    581581log_success_msg2()
    582582{
    583     echo -n -e "${BMPREFIX}${@}"
    584     echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
     583    /bin/echo -n -e "${BMPREFIX}${@}"
     584    /bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
    585585
    586586    echo " OK" >> ${BOOTLOG}
     
    602602log_failure_msg()
    603603{
    604     echo -n -e "${BMPREFIX}${@}"
    605     echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
     604    /bin/echo -n -e "${BMPREFIX}${@}"
     605    /bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
    606606
    607607    # Strip non-printable characters from log file
    608608
    609609    timespec
    610     local logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    611     echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}
     610    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
     611    /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}
    612612   
    613613    return 0
     
    616616log_failure_msg2()
    617617{
    618     echo -n -e "${BMPREFIX}${@}"
    619     echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
     618    /bin/echo -n -e "${BMPREFIX}${@}"
     619    /bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
    620620
    621621    echo "FAIL" >> ${BOOTLOG}
     
    635635log_warning_msg()
    636636{
    637     echo -n -e "${BMPREFIX}${@}"
    638     echo -e "${CURS_ZERO}${WARNING_PREFIX}${SET_COL}${WARNING_SUFFIX}"
     637    /bin/echo -n -e "${BMPREFIX}${@}"
     638    /bin/echo -e "${CURS_ZERO}${WARNING_PREFIX}${SET_COL}${WARNING_SUFFIX}"
    639639
    640640    # Strip non-printable characters from log file
    641     local logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
     641    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    642642    timespec
    643     echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}
     643    /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}
    644644   
    645645    return 0
     
    657657log_info_msg()
    658658{
    659     echo -n -e "${BMPREFIX}${@}"
     659    /bin/echo -n -e "${BMPREFIX}${@}"
    660660
    661661    # Strip non-printable characters from log file
    662     local logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
     662    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    663663    timespec
    664     echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}
     664    /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}
    665665   
    666666    return 0
     
    669669log_info_msg2()
    670670{
    671     echo -n -e "${@}"
     671    /bin/echo -n -e "${@}"
    672672
    673673    # Strip non-printable characters from log file
    674     local logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
    675     echo -n -e "${logmessage}" >> ${BOOTLOG}
     674    logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
     675    /bin/echo -n -e "${logmessage}" >> ${BOOTLOG}
    676676   
    677677    return 0
Note: See TracChangeset for help on using the changeset viewer.