From 079d1ac105c27a9ca3ba0ea4fe374b7e900c5588 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 22 Jun 2001 15:20:34 +0000 Subject: fix setting of MTU (#9624) --- sysconfig/network-scripts/ifup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 61047a96..295a1943 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -88,6 +88,9 @@ fi if [ -n "${MACADDR}" ]; then ifconfig ${DEVICE} hw ether ${MACADDR} fi +if [ -n "${MTU}" ]; then + ifconfig ${DEVICE} mtu ${MTU} +fi # Is there a firewall running, and does it look like one we configured? FWACTIVE= @@ -134,7 +137,6 @@ if [ -n "${DYNCONFIG}" ]; then else if [ -z "${IPADDR}" ]; then # enable device without IP, useful for e.g. PPPoE - ifconfig ${DEVICE} up ${MTU:+mtu $MTU} exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2} fi -- cgit v1.2.1