diff options
| author | Roy Marples <roy@marples.name> | 2009-07-11 15:14:54 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-07-11 15:14:54 +0000 |
| commit | 0df26ea85b56b98fe13a246c3703b5e6d759c566 (patch) | |
| tree | acf24b62a273283b07dbefa41ddf3288887d113c | |
| parent | 321898d72132db54f2bc3c2f76cecf3e49a37b43 (diff) | |
| download | dhcpcd-0df26ea85b56b98fe13a246c3703b5e6d759c566.tar.xz | |
Don't alter the MTU when testing.
| -rw-r--r-- | dhcpcd-hooks/10-mtu | 4 |
1 files changed, 2 insertions, 2 deletions
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" |
