diff --git a/bootscripts/lfs/sbin/ifup b/bootscripts/lfs/sbin/ifup
index 744b4cea2..2facbe8be 100755
--- a/bootscripts/lfs/sbin/ifup
+++ b/bootscripts/lfs/sbin/ifup
@@ -58,27 +58,27 @@ file=/etc/sysconfig/ifconfig.${1}
log_info_msg "Bringing up the ${1} interface... "
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
fi
. $file
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
fi
# Do not process this service if started by boot, and ONBOOT
# is not set to yes
if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
- log_info_msg2 "skipped\n"
+ log_info_msg2 "skipped"
exit 0
fi
for S in ${SERVICE}; do
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}or cannot be executed."
log_failure_msg "$MSG"
@@ -102,11 +102,20 @@ if [ -z "${CHECK_LINK}" -o \
fi
else
- log_warning_msg "\nInterface ${IFACE} doesn't exist."
- exit 0
+ log_failure_msg2 "Interface ${IFACE} doesn't exist."
+ exit 1
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
IFCONFIG=${file} /lib/services/${S} ${IFACE} up
done
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index ad3cc1eb7..26f357fe8 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -37,6 +37,15 @@
-->
+
+ 2012-02-24
+
+
+ [bdubbs] - Minor changes to ifup boot script.
+
+
+
+
2012-02-24
diff --git a/general.ent b/general.ent
index ef71b418a..06c4c8341 100644
--- a/general.ent
+++ b/general.ent
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/packages.ent b/packages.ent
index c9ec490a6..450105b0c 100644
--- a/packages.ent
+++ b/packages.ent
@@ -305,7 +305,7 @@
-
+