diff options
author | Bill Nottingham <notting@redhat.com> | 2001-06-22 15:24:04 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-06-22 15:24:04 +0000 |
commit | cbc9e8719f8992821c3eeea84361b142bcc58745 (patch) | |
tree | 08f906af442f16b8e46e4e7cefad2648029b8319 | |
parent | 89320c44ef5a722b8c1eadafe7776ef4b17ca3c3 (diff) | |
download | initscripts-cbc9e8719f8992821c3eeea84361b142bcc58745.tar initscripts-cbc9e8719f8992821c3eeea84361b142bcc58745.tar.gz initscripts-cbc9e8719f8992821c3eeea84361b142bcc58745.tar.bz2 initscripts-cbc9e8719f8992821c3eeea84361b142bcc58745.tar.xz initscripts-cbc9e8719f8992821c3eeea84361b142bcc58745.zip |
fix setting of MTU and other random variables
-rwxr-xr-x | sysconfig/network-scripts/ifup | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index c2931211..559052cb 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -123,6 +123,9 @@ fi if [ -n "${MACADDR}" ]; then ip link set ${DEVICE} address ${MACADDR} fi +if [ -n "${MTU}" ]; then + ip link set ${DEVICE} mtu ${MTU} +fi # Is there a firewall running, and does it look like one we configured? FWACTIVE= @@ -176,7 +179,7 @@ if [ -n "${DYNCONFIG}" ]; then else if [ -z "${IPADDR}" ]; then # enable device without IP, useful for e.g. PPPoE - ip link set ${DEVICE} up ${MTU:+mtu $MTU} + ip link set ${DEVICE} up exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2} fi @@ -196,8 +199,10 @@ else eval `/bin/ipcalc --network ${IPADDR} ${NETMASK}` fi - [ -n "${ARP}" ] && \ - ip link set ${DEVICE} $(toggle_value arp $ARP) + [ -n "${ARP}${PROMISC}${ALLMULTI}" ] && \ + ip link set ${DEVICE} $(toggle_value arp $ARP) \ + $(toggle_value promisc $PROMISC) \ + $(toggle_value allmulti $ALLMULTI) if ! ip link set ${DEVICE} up ; then echo $"Failed to bring up ${DEVICE}." |