dhcpcd: rework mtu handling on buggy nic's

some nic's loose the carrier after setting new mtu.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-02-01 07:28:03 +01:00
parent 57d98918a1
commit 552fb4b8b5
4 changed files with 35 additions and 9 deletions

View File

@@ -31,13 +31,6 @@ dhcpcd_up()
# Only if RED_TYPE=DHCP update /var/ipfire/red
if [ "$RED_TYPE" == "DHCP" ]; then
#Force MTU option for KabelDeutschland because this ISP
#set the MTU to 576 instead of the supportet 1500
if [ $RED_DHCP_FORCE_MTU -ge 576 ]; then
logger -p local0.info -t dhcpcd.exe[$$] "Force mtu to $RED_DHCP_FORCE_MTU"
ip link set $interface mtu $RED_DHCP_FORCE_MTU
fi
#Check if we have to restart the services at update
[ ! -e "/var/ipfire/red/active" ] && update=1;
if [ "$old_domain_name_service" != "$new_domain_name_service" ]; then