mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11611 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
8a67f19184
commit
e9d172b212
@ -40,11 +40,11 @@ INFO="\\033[1;36m" # Information is light cyan
|
|||||||
BRACKET="\\033[1;34m" # Brackets are blue
|
BRACKET="\\033[1;34m" # Brackets are blue
|
||||||
|
|
||||||
# Use a colored prefix
|
# Use a colored prefix
|
||||||
BMPREFIX=" "
|
BMPREFIX=" "
|
||||||
SUCCESS_PREFIX="${SUCCESS} * ${NORMAL}"
|
SUCCESS_PREFIX="${SUCCESS} * ${NORMAL} "
|
||||||
FAILURE_PREFIX="${FAILURE}*****${NORMAL}"
|
FAILURE_PREFIX="${FAILURE}*****${NORMAL} "
|
||||||
WARNING_PREFIX="${WARNING} *** ${NORMAL}"
|
WARNING_PREFIX="${WARNING} *** ${NORMAL} "
|
||||||
SKIP_PREFIX="${INFO} S ${NORMAL}"
|
SKIP_PREFIX="${INFO} S ${NORMAL}"
|
||||||
|
|
||||||
SUCCESS_SUFFIX="${BRACKET}[${SUCCESS} OK ${BRACKET}]${NORMAL}"
|
SUCCESS_SUFFIX="${BRACKET}[${SUCCESS} OK ${BRACKET}]${NORMAL}"
|
||||||
FAILURE_SUFFIX="${BRACKET}[${FAILURE} FAIL ${BRACKET}]${NORMAL}"
|
FAILURE_SUFFIX="${BRACKET}[${FAILURE} FAIL ${BRACKET}]${NORMAL}"
|
||||||
|
@ -47,12 +47,6 @@ fi
|
|||||||
case "${2}" in
|
case "${2}" in
|
||||||
up)
|
up)
|
||||||
if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" = "" ]; then
|
if [ "$(ip addr show ${1} 2>/dev/null | grep ${IP}/)" = "" ]; then
|
||||||
|
|
||||||
# Cosmetic output
|
|
||||||
if ! $(echo ${SERVICE} | grep -q " "); then
|
|
||||||
log_info_msg2 "\n" # Terminate the previous message
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_info_msg "Adding IPv4 address ${IP} to the ${1} interface..."
|
log_info_msg "Adding IPv4 address ${IP} to the ${1} interface..."
|
||||||
ip addr add ${args} dev ${1}
|
ip addr add ${args} dev ${1}
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
# Authors : Nathan Coulson - nathan@linuxfromscratch.org
|
# Authors : Nathan Coulson - nathan@linuxfromscratch.org
|
||||||
# Kevin P. Fleming - kpfleming@linuxfromscratch.org
|
# Kevin P. Fleming - kpfleming@linuxfromscratch.org
|
||||||
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
||||||
|
# DJ Lucas - dj@linuxfromscratch.org
|
||||||
#
|
#
|
||||||
# Version : LFS 7.7
|
# Version : LFS 7.7
|
||||||
#
|
#
|
||||||
@ -18,6 +19,8 @@
|
|||||||
|
|
||||||
up()
|
up()
|
||||||
{
|
{
|
||||||
|
log_info_msg "Bringing up the ${1} interface..."
|
||||||
|
|
||||||
if ip link show $1 > /dev/null 2>&1; then
|
if ip link show $1 > /dev/null 2>&1; then
|
||||||
link_status=`ip link show $1`
|
link_status=`ip link show $1`
|
||||||
|
|
||||||
@ -28,9 +31,11 @@ up()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
log_failure_msg "\nInterface ${IFACE} doesn't exist."
|
log_failure_msg "Interface ${IFACE} doesn't exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
evaluate_retval
|
||||||
}
|
}
|
||||||
|
|
||||||
RELEASE="7.7"
|
RELEASE="7.7"
|
||||||
@ -72,27 +77,29 @@ file=/etc/sysconfig/ifconfig.${1}
|
|||||||
|
|
||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
log_info_msg "Bringing up the ${1} interface... "
|
|
||||||
|
|
||||||
if [ ! -r "${file}" ]; then
|
if [ ! -r "${file}" ]; then
|
||||||
log_failure_msg2 "${file} is missing or cannot be accessed."
|
log_failure_msg "Unable to bring up ${1} interface! ${file} is missing or cannot be accessed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. $file
|
. $file
|
||||||
|
|
||||||
if [ "$IFACE" = "" ]; then
|
if [ "$IFACE" = "" ]; then
|
||||||
log_failure_msg2 "${file} does not define an interface [IFACE]."
|
log_failure_msg "Unable to bring up ${1} interface! ${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_skip_msg
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Bring up the interface
|
||||||
|
if [ "$VIRTINT" != "yes" ]; then
|
||||||
|
up ${IFACE}
|
||||||
|
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="\nUnable to process ${file}. Either "
|
||||||
@ -110,8 +117,13 @@ for S in ${SERVICE}; do
|
|||||||
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
|
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
|
||||||
done
|
done
|
||||||
|
|
||||||
# Bring up the interface and any components
|
# Set link up virtual interfaces
|
||||||
for I in $IFACE $INTERFACE_COMPONENTS; do up $I; done
|
if [ "${VIRTINT}" == "yes" ]; then
|
||||||
|
up ${IFACE}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bring up any additional interface components
|
||||||
|
for I in $INTERFACE_COMPONENTS; do up $I; done
|
||||||
|
|
||||||
# Set MTU if requested. Check if MTU has a "good" value.
|
# Set MTU if requested. Check if MTU has a "good" value.
|
||||||
if test -n "${MTU}"; then
|
if test -n "${MTU}"; then
|
||||||
@ -127,9 +139,9 @@ fi
|
|||||||
# Set the route default gateway if requested
|
# Set the route default gateway if requested
|
||||||
if [ -n "${GATEWAY}" ]; then
|
if [ -n "${GATEWAY}" ]; then
|
||||||
if ip route | grep -q default; then
|
if ip route | grep -q default; then
|
||||||
log_skip_msg "\n Gateway already setup; skipping."
|
log_warning_msg "Gateway already setup; skipping."
|
||||||
else
|
else
|
||||||
log_info_msg "Setting up default gateway..."
|
log_info_msg "Adding default gateway ${GATEWAY} to the ${IFACE} interface..."
|
||||||
ip route add default via ${GATEWAY} dev ${IFACE}
|
ip route add default via ${GATEWAY} dev ${IFACE}
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
fi
|
fi
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
# Use a colored prefix
|
# Use a colored prefix
|
||||||
# These values, if specified here, override the defaults
|
# These values, if specified here, override the defaults
|
||||||
#BMPREFIX=" "
|
#BMPREFIX=" "
|
||||||
#SUCCESS_PREFIX="${SUCCESS} * ${NORMAL}"
|
#SUCCESS_PREFIX="${SUCCESS} * ${NORMAL} "
|
||||||
#FAILURE_PREFIX="${FAILURE}*****${NORMAL}"
|
#FAILURE_PREFIX="${FAILURE}*****${NORMAL} "
|
||||||
#WARNING_PREFIX="${WARNING} *** ${NORMAL}"
|
#WARNING_PREFIX="${WARNING} *** ${NORMAL} "
|
||||||
|
|
||||||
# Manually seet the right edge of message output (characters)
|
# Manually seet the right edge of message output (characters)
|
||||||
# Useful when resetting console font during boot to override
|
# Useful when resetting console font during boot to override
|
||||||
|
@ -45,6 +45,15 @@
|
|||||||
appropriate for the entry or if needed the entire day's listitem.
|
appropriate for the entry or if needed the entire day's listitem.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<listitem revision="sysv">
|
||||||
|
<para>2019-05-24</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[dj] - Cosmetic changes to LFS bootscripts.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2019-05-19</para>
|
<para>2019-05-19</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -143,9 +143,9 @@
|
|||||||
<!--<listitem>
|
<!--<listitem>
|
||||||
<para>Less-&less-version;</para>
|
<para>Less-&less-version;</para>
|
||||||
</listitem>-->
|
</listitem>-->
|
||||||
<!--<listitem>
|
<listitem>
|
||||||
<para>LFS-Bootscripts-&lfs-bootscripts-version;</para>
|
<para>LFS-Bootscripts-&lfs-bootscripts-version;</para>
|
||||||
</listitem>-->
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Libcap-&libcap-version;</para>
|
<para>Libcap-&libcap-version;</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!ENTITY version "SVN-20190519">
|
<!ENTITY version "SVN-20190524">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||||
Change to x.y for release but not -rc releases -->
|
Change to x.y for release but not -rc releases -->
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
@ -7,7 +7,7 @@
|
|||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "systemd">
|
<!ENTITY generic-versiond "systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "May 19, 2019">
|
<!ENTITY releasedate "May 24, 2019">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "8.5">
|
<!ENTITY milestone "8.5">
|
||||||
|
@ -389,7 +389,7 @@
|
|||||||
<!ENTITY less-ch6-du "3.9 MB">
|
<!ENTITY less-ch6-du "3.9 MB">
|
||||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||||
|
|
||||||
<!ENTITY lfs-bootscripts-version "20180820"> <!-- Scripts depend on this format -->
|
<!ENTITY lfs-bootscripts-version "20190524"> <!-- Scripts depend on this format -->
|
||||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
|
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
|
||||||
<!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">
|
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">
|
||||||
@ -537,7 +537,7 @@
|
|||||||
|
|
||||||
<!ENTITY openssl-version "1.1.1b">
|
<!ENTITY openssl-version "1.1.1b">
|
||||||
<!ENTITY openssl-size "8,022 KB">
|
<!ENTITY openssl-size "8,022 KB">
|
||||||
<!ENTITY openssl-url "https://openssl.org/source/openssl-&openssl-version;.tar.gz">
|
<!ENTITY openssl-url "https://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
|
||||||
<!ENTITY openssl-md5 "4532712e7bcc9414f5bce995e4e13930">
|
<!ENTITY openssl-md5 "4532712e7bcc9414f5bce995e4e13930">
|
||||||
<!ENTITY openssl-home "https://www.openssl.org/">
|
<!ENTITY openssl-home "https://www.openssl.org/">
|
||||||
<!ENTITY openssl-ch6-du "141 MB">
|
<!ENTITY openssl-ch6-du "141 MB">
|
||||||
|
Loading…
Reference in New Issue
Block a user