From: Serge L. <sma...@us...> - 2010-09-16 07:43:58
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv20995 Modified Files: network Log Message: - ignore DHCP setting for MTU if MTU is redefined for the interface Index: network =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/init.d/network,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- network 16 Sep 2010 07:30:16 -0000 1.53 +++ network 16 Sep 2010 07:43:50 -0000 1.54 @@ -15,6 +15,7 @@ # Friedrich Lobenstock <fl...@fl...> # Thomas Eder <tho...@bu...> # Arnaud Gomes-do-Vale <Arn...@ir...> +# Serge Leschinsky <sma...@us...> # ### BEGIN INIT INFO @@ -209,7 +210,12 @@ else echo "Redefining MTU ($MTU) on $DEVICE" fi - MTU="mtu $MTU" + MTU="mtu $MTU" + + # works only for dhcpcd + if [ "$DHCP" = "yes" -a "$DHCP_CLIENT" = "dhcpcd" ]; then + DHCP_OPTIONS="$DHCP_OPTIONS -C mtu" + fi fi # |