]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
The smallest MTU we can work with is 576, so don't set less.
authorRoy Marples <roy@marples.name>
Wed, 13 May 2009 18:49:49 +0000 (18:49 +0000)
committerRoy Marples <roy@marples.name>
Wed, 13 May 2009 18:49:49 +0000 (18:49 +0000)
dhcpcd-hooks/10-mtu

index 167d6467c6e1ec35b0dd41c3fd5da9f025f9ea1d..e4bb651c6917b09925c8981a5e74c13893cb8048 100644 (file)
@@ -1,5 +1,8 @@
 # Configure the MTU for the interface
 
 if [ -n "$new_interface_mtu" ]; then
-       ifconfig "$interface" mtu "$new_interface_mtu"
+       # The smalled MTU dhcpcd can work with is 576
+       if [ "$new_interface_mtu" -ge 576 ]; then
+               ifconfig "$interface" mtu "$new_interface_mtu"
+       fi
 fi