mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Minor changes to ifup boot script.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9757 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
6d6a2f029d
commit
aa14485736
@ -58,27 +58,27 @@ file=/etc/sysconfig/ifconfig.${1}
|
|||||||
log_info_msg "Bringing up the ${1} interface... "
|
log_info_msg "Bringing up the ${1} interface... "
|
||||||
|
|
||||||
if [ ! -r "${file}" ]; then
|
if [ ! -r "${file}" ]; then
|
||||||
log_warning_msg "\n${file} is missing or cannot be accessed."
|
log_failure_msg2 "${file} is missing or cannot be accessed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. $file
|
. $file
|
||||||
|
|
||||||
if [ "$IFACE" = "" ]; then
|
if [ "$IFACE" = "" ]; then
|
||||||
log_failure_msg "\n${file} does not define an interface [IFACE]."
|
log_failure_msg2 "${file} does not define an interface [IFACE]."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not process this service if started by boot, and ONBOOT
|
# Do not process this service if started by boot, and ONBOOT
|
||||||
# is not set to yes
|
# is not set to yes
|
||||||
if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
|
if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
|
||||||
log_info_msg2 "skipped\n"
|
log_info_msg2 "skipped"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for S in ${SERVICE}; do
|
for S in ${SERVICE}; do
|
||||||
if [ ! -x "/lib/services/${S}" ]; then
|
if [ ! -x "/lib/services/${S}" ]; then
|
||||||
MSG="\nUnable to process ${file}. Either "
|
MSG="\n Unable to process ${file}. Either "
|
||||||
MSG="${MSG}the SERVICE '${S} was not present "
|
MSG="${MSG}the SERVICE '${S} was not present "
|
||||||
MSG="${MSG}or cannot be executed."
|
MSG="${MSG}or cannot be executed."
|
||||||
log_failure_msg "$MSG"
|
log_failure_msg "$MSG"
|
||||||
@ -102,11 +102,20 @@ if [ -z "${CHECK_LINK}" -o \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
log_warning_msg "\nInterface ${IFACE} doesn't exist."
|
log_failure_msg2 "Interface ${IFACE} doesn't exist."
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set MTU if requested. Check if MTU has a "good" value.
|
||||||
|
if test -n "${MTU}"; then
|
||||||
|
if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then
|
||||||
|
ip link set dev ${IFACE} mtu $MTU
|
||||||
|
else
|
||||||
|
log_info_msg2 "Invalid MTU $MTU"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for S in ${SERVICE}; do
|
for S in ${SERVICE}; do
|
||||||
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
|
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
|
||||||
done
|
done
|
||||||
|
@ -37,6 +37,15 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>2012-02-24</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Minor changes to ifup boot script.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2012-02-24</para>
|
<para>2012-02-24</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!ENTITY version "SVN-20120224">
|
<!ENTITY version "SVN-20120229">
|
||||||
<!ENTITY releasedate "Feb 24, 2012">
|
<!ENTITY releasedate "Feb 29, 2012">
|
||||||
<!ENTITY copyrightdate "1999-2012"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2012"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "7.1">
|
<!ENTITY milestone "7.1">
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
@ -305,7 +305,7 @@
|
|||||||
<!ENTITY less-ch6-du "3.5 MB">
|
<!ENTITY less-ch6-du "3.5 MB">
|
||||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||||
|
|
||||||
<!ENTITY lfs-bootscripts-version "20120219"> <!-- Scripts depend on this format -->
|
<!ENTITY lfs-bootscripts-version "20120229"> <!-- Scripts depend on this format -->
|
||||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
||||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||||
|
Loading…
Reference in New Issue
Block a user