Changeset aa14485


Ignore:
Timestamp:
02/29/2012 10:22:52 PM (12 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.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:
afe9489
Parents:
6d6a2f0
Message:

Minor changes to ifup boot script.

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/sbin/ifup

    r6d6a2f0 raa14485  
    5959
    6060if [ ! -r "${file}" ]; then
    61    log_warning_msg "\n${file} is missing or cannot be accessed."
     61   log_failure_msg2 "${file} is missing or cannot be accessed."
    6262   exit 1
    6363fi
     
    6666
    6767if [ "$IFACE" = "" ]; then
    68    log_failure_msg "\n${file} does not define an interface [IFACE]."
     68   log_failure_msg2 "${file} does not define an interface [IFACE]."
    6969   exit 1
    7070fi
     
    7373# is not set to yes
    7474if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
    75    log_info_msg2 "skipped\n"
     75   log_info_msg2 "skipped"
    7676   exit 0
    7777fi
     
    7979for S in ${SERVICE}; do
    8080  if [ ! -x "/lib/services/${S}" ]; then
    81     MSG="\nUnable to process ${file}.  Either "
     81    MSG="\n     Unable to process ${file}.  Either "
    8282    MSG="${MSG}the SERVICE '${S} was not present "
    8383    MSG="${MSG}or cannot be executed."
     
    103103
    104104   else
    105       log_warning_msg "\nInterface ${IFACE} doesn't exist."
    106       exit 0
     105      log_failure_msg2 "Interface ${IFACE} doesn't exist."
     106      exit 1
    107107   fi
    108108fi
     109
     110# Set MTU if requested. Check if MTU has a "good" value.
     111if test -n "${MTU}"; then
     112   if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then
     113      ip link set dev ${IFACE} mtu $MTU
     114   else
     115      log_info_msg2 "Invalid MTU $MTU"
     116   fi
     117fi
    109118
    110119for S in ${SERVICE}; do
  • chapter01/changelog.xml

    r6d6a2f0 raa14485  
    3737
    3838-->
     39
     40    <listitem>
     41      <para>2012-02-24</para>
     42      <itemizedlist>
     43        <listitem>
     44          <para>[bdubbs] - Minor changes to ifup boot script.</para>
     45        </listitem>
     46      </itemizedlist>
     47    </listitem>
    3948
    4049    <listitem>
  • general.ent

    r6d6a2f0 raa14485  
    1 <!ENTITY version "SVN-20120224">
    2 <!ENTITY releasedate "Feb 24, 2012">
     1<!ENTITY version "SVN-20120229">
     2<!ENTITY releasedate "Feb 29, 2012">
    33<!ENTITY copyrightdate "1999-2012"><!-- jhalfs needs a literal dash, not &ndash; -->
    44<!ENTITY milestone "7.1">
  • packages.ent

    r6d6a2f0 raa14485  
    306306<!ENTITY less-ch6-sbu "less than 0.1 SBU">
    307307
    308 <!ENTITY lfs-bootscripts-version "20120219">                 <!-- Scripts depend on this format -->
     308<!ENTITY lfs-bootscripts-version "20120229">                 <!-- Scripts depend on this format -->
    309309<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">         <!-- Updated in Makefile -->
    310310<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
Note: See TracChangeset for help on using the changeset viewer.