From: Roy Marples Date: Sat, 11 Jul 2009 15:14:54 +0000 (+0000) Subject: Don't alter the MTU when testing. X-Git-Tag: v5.0.7~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df26ea85b56b98fe13a246c3703b5e6d759c566;p=thirdparty%2Fdhcpcd.git Don't alter the MTU when testing. --- diff --git a/dhcpcd-hooks/10-mtu b/dhcpcd-hooks/10-mtu index fa82b753..3f6e1750 100644 --- a/dhcpcd-hooks/10-mtu +++ b/dhcpcd-hooks/10-mtu @@ -4,7 +4,7 @@ mtu_dir="$state_dir/mtu" if [ "$reason" = PREINIT -a -e "$mtu_dir/$interface" ]; then rm "$mtu_dir/$interface" -elif [ -n "$new_interface_mtu" ]; then +elif [ "$reason" != TEST -a -n "$new_interface_mtu" ]; then # The smalled MTU dhcpcd can work with is 576 if [ "$new_interface_mtu" -ge 576 ]; then if ifconfig "$interface" mtu "$new_interface_mtu"; then @@ -16,7 +16,7 @@ elif [ -n "$new_interface_mtu" ]; then fi fi fi -elif [ -e "$mtu_dir/$interface" ]; then +elif [ "$reason" != TEST -a -e "$mtu_dir/$interface" ]; then # No MTU in this state, so restore the prior MTU mtu=$(cat "$mtu_dir/$interface") syslog info "$interface: MTU restored to $mtu"