From: Arne Fitzenreiter Date: Tue, 30 Nov 2010 19:49:04 +0000 (+0100) Subject: Add force mtu option to dhcp-client. X-Git-Tag: v2.9-beta1~44 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=0c719f9351543073b0d77e3f27b6e32873fa8eca Add force mtu option to dhcp-client. --- diff --git a/config/rootfiles/core/43/filelists/files b/config/rootfiles/core/43/filelists/files index ec74a1d71a..9088d65e75 100644 --- a/config/rootfiles/core/43/filelists/files +++ b/config/rootfiles/core/43/filelists/files @@ -3,6 +3,7 @@ etc/rc.d/init.d/checkfs etc/rc.d/init.d/checkfstab etc/rc.d/init.d/firewall etc/rc.d/init.d/squid +etc/rc.d/init.d/networking/dhcpcd.exe srv/web/ipfire/cgi-bin/extrahd.cgi srv/web/ipfire/cgi-bin/proxy.cgi srv/web/ipfire/cgi-bin/speed.cgi diff --git a/src/initscripts/init.d/networking/dhcpcd.exe b/src/initscripts/init.d/networking/dhcpcd.exe index 0d06bcb156..ac835c5b9e 100644 --- a/src/initscripts/init.d/networking/dhcpcd.exe +++ b/src/initscripts/init.d/networking/dhcpcd.exe @@ -23,9 +23,21 @@ dhcpcd_up() set | grep "^new_" | sed "s|^new_||g" | \ sort > /var/ipfire/dhcpc/dhcpcd-$interface.info + #Check if this was the Red device... + if [ ! "$interface" == "$RED_DEV" ]; then + exit 0; + fi + # 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