summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/networkconfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-config/networkconfig.sh')
-rw-r--r--abs/core-testing/LinHES-config/networkconfig.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/networkconfig.sh b/abs/core-testing/LinHES-config/networkconfig.sh
index 38b819a..770aa98 100644
--- a/abs/core-testing/LinHES-config/networkconfig.sh
+++ b/abs/core-testing/LinHES-config/networkconfig.sh
@@ -92,6 +92,7 @@ function setup_interfaces() {
local KEY
local ENCRYPT
local TEMPNET
+ local MTU
IS_WIRELESS=false
#local ip
@@ -118,6 +119,8 @@ function setup_interfaces() {
TEMPNET=HOST_iswireless$1
eval wireless=\$${TEMPNET}
+ TEMPNET=HostMTU$1
+ eval MTU=\$${TEMPNET}
@@ -176,9 +179,6 @@ function setup_interfaces() {
sed -i -e 's/^CONFIG_WIRLESS=.*$/CONFIG_WIRLESS=no/g' $ETCNETDIR/$1/options
fi
-
-
-
if [ x$UseDHCP = x0 ]
then
echo using dhcp
@@ -191,6 +191,16 @@ function setup_interfaces() {
echo "$ip$netmask" > $ETCNETDIR/$1/ipv4address
setup_nameserver $dns
fi
+
+ if [ x$MTU = x ]
+ then
+ echo "MTU is blank, card will use default values"
+ sed -i '/^mtu.*$/d' /etc/net/ifaces/$1/iplink
+ else
+ echo "setting mtu for $1 to $MTU"
+ sed -i '/^mtu.*$/d' /etc/net/ifaces/$1/iplink
+ echo "mtu $MTU " >> /etc/net/ifaces/$1/iplink
+ fi
}